Module: NfgUi::Bootstrap::Utilities::Themeable

Overview

Allows component to utilize the bootstrap4 theme color palette

Instance Method Summary collapse

Instance Method Details

#outlinedObject



8
9
10
# File 'lib/nfg_ui/bootstrap/utilities/themeable.rb', line 8

def outlined
  options.fetch(:outlined, false)
end

#themeObject

To disable theme on a case by case basis, pass in { theme: nil } to options. or To disable a default theme for a component set default_theme to nil



15
16
17
# File 'lib/nfg_ui/bootstrap/utilities/themeable.rb', line 15

def theme
  options.fetch(:theme, default_theme)
end