Class: Tabulous::Config
- Inherits:
-
Object
- Object
- Tabulous::Config
- Defined in:
- lib/tabulous/config.rb
Class Attribute Summary collapse
-
.active_tab_clickable ⇒ Object
Returns the value of attribute active_tab_clickable.
-
.active_tab_color ⇒ Object
Returns the value of attribute active_tab_color.
-
.background_color ⇒ Object
Returns the value of attribute background_color.
-
.hover_tab_color ⇒ Object
Returns the value of attribute hover_tab_color.
-
.inactive_tab_color ⇒ Object
Returns the value of attribute inactive_tab_color.
-
.inactive_text_color ⇒ Object
Returns the value of attribute inactive_text_color.
-
.render_subtabs_when_empty ⇒ Object
Returns the value of attribute render_subtabs_when_empty.
-
.renderer ⇒ Object
Returns the value of attribute renderer.
-
.text_color ⇒ Object
Returns the value of attribute text_color.
-
.use_css_scaffolding ⇒ Object
Returns the value of attribute use_css_scaffolding.
-
.when_action_has_no_tab ⇒ Object
Returns the value of attribute when_action_has_no_tab.
Class Method Summary collapse
Class Attribute Details
.active_tab_clickable ⇒ Object
Returns the value of attribute active_tab_clickable.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def active_tab_clickable @active_tab_clickable end |
.active_tab_color ⇒ Object
Returns the value of attribute active_tab_color.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def active_tab_color @active_tab_color end |
.background_color ⇒ Object
Returns the value of attribute background_color.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def background_color @background_color end |
.hover_tab_color ⇒ Object
Returns the value of attribute hover_tab_color.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def hover_tab_color @hover_tab_color end |
.inactive_tab_color ⇒ Object
Returns the value of attribute inactive_tab_color.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def inactive_tab_color @inactive_tab_color end |
.inactive_text_color ⇒ Object
Returns the value of attribute inactive_text_color.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def inactive_text_color @inactive_text_color end |
.render_subtabs_when_empty ⇒ Object
Returns the value of attribute render_subtabs_when_empty.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def render_subtabs_when_empty @render_subtabs_when_empty end |
.renderer ⇒ Object
Returns the value of attribute renderer.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def renderer @renderer end |
.text_color ⇒ Object
Returns the value of attribute text_color.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def text_color @text_color end |
.use_css_scaffolding ⇒ Object
Returns the value of attribute use_css_scaffolding.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def use_css_scaffolding @use_css_scaffolding end |
.when_action_has_no_tab ⇒ Object
Returns the value of attribute when_action_has_no_tab.
5 6 7 |
# File 'lib/tabulous/config.rb', line 5 def when_action_has_no_tab @when_action_has_no_tab end |
Class Method Details
.set_defaults ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/tabulous/config.rb', line 27 def set_defaults @renderer = :default @active_tab_clickable = true @when_action_has_no_tab = :do_not_render @render_subtabs_when_empty = false @use_css_scaffolding = false @background_color = '#ccc' @text_color = '#444' @active_tab_color = '#fff' @hover_tab_color = '#ddd' @inactive_tab_color = '#aaa' @inactive_text_color = '#888' end |