Class: Protos::Command::Group
- Inherits:
-
Protos::Component
- Object
- Phlex::HTML
- Protos::Component
- Protos::Command::Group
- Defined in:
- lib/protos/command/group.rb
Instance Method Summary collapse
-
#view_template(&block) ⇒ Object
DOCS: An optional group for holding a heading and a list of options.
Methods inherited from Protos::Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#view_template(&block) ⇒ Object
DOCS: An optional group for holding a heading and a list of options. Items in the group will have a divider line on the left side and can optionally have a title.
10 11 12 13 14 |
# File 'lib/protos/command/group.rb', line 10 def view_template(&block) li(**attrs) do ul(class: css[:list], &block) end end |