Module: NfgUi::Components::Traits::Alert
- Includes:
- Utilities::Traits::TraitUtilities
- Included in:
- Elements::Alert
- Defined in:
- lib/nfg_ui/components/traits/alert.rb
Overview
Access to pre-designed Alert traits
Constant Summary collapse
- TRAITS =
%i[tip].freeze
Instance Method Summary collapse
Instance Method Details
#tip_trait ⇒ Object
12 13 14 15 16 |
# File 'lib/nfg_ui/components/traits/alert.rb', line 12 def tip_trait maybe_update_option(:icon, value: NfgUi::DEFAULT_TIP_ICON) maybe_update_option(:theme, value: NfgUi::DEFAULT_TIP_THEME) [:dismissible] = false end |