Module: NfgUi::Components::Traits::Slats
- Included in:
- Patterns::Slats
- Defined in:
- lib/nfg_ui/components/traits/slats.rb
Overview
Step traits
Constant Summary collapse
- TRAITS =
%i[slat_actions_sm slat_actions_lg slat_actions_none nowrap].freeze
Instance Method Summary collapse
- #nowrap_trait ⇒ Object
- #slat_actions_lg_trait ⇒ Object
- #slat_actions_none_trait ⇒ Object
- #slat_actions_sm_trait ⇒ Object
Instance Method Details
#nowrap_trait ⇒ Object
8 9 10 |
# File 'lib/nfg_ui/components/traits/slats.rb', line 8 def nowrap_trait [:nowrap] = true end |
#slat_actions_lg_trait ⇒ Object
16 17 18 |
# File 'lib/nfg_ui/components/traits/slats.rb', line 16 def slat_actions_lg_trait [:slat_actions] = :lg end |
#slat_actions_none_trait ⇒ Object
20 21 22 |
# File 'lib/nfg_ui/components/traits/slats.rb', line 20 def slat_actions_none_trait [:slat_actions] = :none end |
#slat_actions_sm_trait ⇒ Object
12 13 14 |
# File 'lib/nfg_ui/components/traits/slats.rb', line 12 def slat_actions_sm_trait [:slat_actions] = :sm end |