Class: Protos::List::Item
- Defined in:
- lib/protos/list/item.rb
Instance Method Summary collapse
-
#view_template ⇒ Object
DOCS: A single item within a list.
Methods inherited from Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#view_template ⇒ Object
DOCS: A single item within a list. Items are joined so that borders will work for list items, including border radius. E.g. only the first and last items will have border radius on the top and bottom.
10 11 12 |
# File 'lib/protos/list/item.rb', line 10 def view_template(&) li(**attrs, &) end |