Class: ExpressUi::UnorderedList
- Inherits:
-
ExpressTemplates::Container
- Object
- ExpressTemplates::Container
- ExpressUi::UnorderedList
- Includes:
- ExpressTemplates::Components::Capabilities::Iteration
- Defined in:
- app/components/express_ui/unordered_list.rb
Instance Method Summary collapse
Instance Method Details
#collection_name ⇒ Object
18 19 20 |
# File 'app/components/express_ui/unordered_list.rb', line 18 def collection_name config[:collection_name] || config[:id] end |
#item_id ⇒ Object
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 |