Class: Bootstrap4RailsComponents::Bootstrap::Components::TabPane
- Includes:
- Utilities::Activatable
- Defined in:
- lib/bootstrap4_rails_components/bootstrap/components/tab_pane.rb
Overview
Bootstrap Progress Component getbootstrap.com/docs/4.1/components/progress/
Instance Attribute Summary
Attributes inherited from Base
#body, #options, #view_context
Instance Method Summary collapse
- #component_family ⇒ Object
-
#fade ⇒ Object
Fade is turned on by default This should probably be a global setting.
- #id ⇒ Object
- #tab ⇒ Object
Methods included from Utilities::Activatable
Methods inherited from Base
#component_initialize, #data, #href, #html_options, #initialize, #render, #style, #utility_initialize
Constructor Details
This class inherits a constructor from Bootstrap4RailsComponents::Bootstrap::Components::Base
Instance Method Details
#component_family ⇒ Object
11 12 13 |
# File 'lib/bootstrap4_rails_components/bootstrap/components/tab_pane.rb', line 11 def component_family :tab end |
#fade ⇒ Object
Fade is turned on by default This should probably be a global setting
25 26 27 |
# File 'lib/bootstrap4_rails_components/bootstrap/components/tab_pane.rb', line 25 def fade .fetch(:fade, true) end |
#id ⇒ Object
19 20 21 |
# File 'lib/bootstrap4_rails_components/bootstrap/components/tab_pane.rb', line 19 def id tab ? tab.tr('#', '') : super end |
#tab ⇒ Object
15 16 17 |
# File 'lib/bootstrap4_rails_components/bootstrap/components/tab_pane.rb', line 15 def tab .fetch(:tab, nil) end |