Module: NfgUi::Components::Traits::Collapse
- Included in:
- Patterns::Collapse, Patterns::Tile
- Defined in:
- lib/nfg_ui/components/traits/collapse.rb
Overview
Access to pre-designed Card traits
Constant Summary collapse
- TRAITS =
%i[collapsible collapsed navbar].freeze
Instance Method Summary collapse
- #collapsed_trait ⇒ Object
-
#collapsible_trait ⇒ Object
Set component to collapse capable.
- #navbar_trait ⇒ Object
Instance Method Details
#collapsed_trait ⇒ Object
19 20 21 |
# File 'lib/nfg_ui/components/traits/collapse.rb', line 19 def collapsed_trait [:collapsed] = true end |
#collapsible_trait ⇒ Object
Set component to collapse capable
15 16 17 |
# File 'lib/nfg_ui/components/traits/collapse.rb', line 15 def collapsible_trait [:collapsible] = true end |
#navbar_trait ⇒ Object
23 24 25 |
# File 'lib/nfg_ui/components/traits/collapse.rb', line 23 def [:navbar] = true end |