Class: ExpressUi::UnorderedList

Inherits:
ExpressTemplates::Container
  • Object
show all
Includes:
ExpressTemplates::Components::Capabilities::Iteration
Defined in:
app/components/express_ui/unordered_list.rb

Instance Method Summary collapse

Instance Method Details

#collection_nameObject



18
19
20
# File 'app/components/express_ui/unordered_list.rb', line 18

def collection_name
  config[:collection_name] || config[:id]
end

#item_idObject



22
23
24
25
26
# File 'app/components/express_ui/unordered_list.rb', line 22

def item_id
  if item.respond_to?(:id)
    "#{singular_item_name}:#{item.id}"
  end
end