Class: NfgUi::Bootstrap::Components::TabPane

Inherits:
Base
  • Object
show all
Includes:
Utilities::Activatable
Defined in:
lib/nfg_ui/bootstrap/components/tab_pane.rb

Overview

Bootstrap Progress Component getbootstrap.com/docs/4.1/components/progress/

Direct Known Subclasses

Components::Elements::TabPane

Instance Attribute Summary

Attributes inherited from Base

#body, #options, #view_context

Instance Method Summary collapse

Methods included from Utilities::Activatable

#active

Methods inherited from Base

#data, #href, #html_options, #initialize, #render, #style

Constructor Details

This class inherits a constructor from NfgUi::Bootstrap::Components::Base

Instance Method Details

#component_familyObject



11
12
13
# File 'lib/nfg_ui/bootstrap/components/tab_pane.rb', line 11

def component_family
  :tab
end

#fadeObject

Fade is turned on by default This should probably be a global setting



25
26
27
# File 'lib/nfg_ui/bootstrap/components/tab_pane.rb', line 25

def fade
  options.fetch(:fade, true)
end

#idObject



19
20
21
# File 'lib/nfg_ui/bootstrap/components/tab_pane.rb', line 19

def id
  tab ? tab.tr('#', '') : super
end

#tabObject



15
16
17
# File 'lib/nfg_ui/bootstrap/components/tab_pane.rb', line 15

def tab
  options.fetch(:tab, nil)
end