Module: NfgUi::Bootstrap::Utilities::Themeable
- Included in:
- Components::Alert, Components::Badge, Components::Button, Components::Card, Components::ListGroupItem, Components::Navbar, Components::ProgressBar, Components::Elements::DropdownItem, Components::Foundations::Icon, Components::Foundations::Typeface
- Defined in:
- lib/nfg_ui/bootstrap/utilities/themeable.rb
Overview
Allows component to utilize the bootstrap4 theme color palette
Instance Method Summary collapse
- #outlined ⇒ Object
-
#theme ⇒ Object
To disable theme on a case by case basis, pass in { theme: nil } to options.
Instance Method Details
#outlined ⇒ Object
8 9 10 |
# File 'lib/nfg_ui/bootstrap/utilities/themeable.rb', line 8 def outlined .fetch(:outlined, false) end |
#theme ⇒ Object
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 .fetch(:theme, default_theme) end |