module NfgUi::Components::Traits::Alert

Access to pre-designed Alert traits

Constants

TRAITS

Public Instance Methods

tip_trait() click to toggle source
# 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)
  options[:dismissible] = false
end