Module: Bootstrap4RailsComponents::Bootstrap::Utilities::Themeable

Included in:
Components::Alert, Components::Badge, Components::Button, Components::Card, Components::ListGroupItem, Components::Navbar, Components::ProgressBar
Defined in:
lib/bootstrap4_rails_components/bootstrap/utilities/themeable.rb

Overview

Allows component to utilize the bootstrap4 theme color palette

Instance Method Summary collapse

Instance Method Details

#outlinedObject



8
9
10
# File 'lib/bootstrap4_rails_components/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/bootstrap4_rails_components/bootstrap/utilities/themeable.rb', line 15

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