Class: Interview::ProgressBar
- Includes:
- HasHtmlOptions
- Defined in:
- lib/interview/controls/progress_bar.rb
Instance Attribute Summary collapse
-
#hidden ⇒ Object
todo: löschen?.
Attributes included from HasHtmlOptions
Attributes inherited from Control
Instance Method Summary collapse
Methods included from HasHtmlOptions
Methods inherited from Control
#ancestors, #build_child, #build_with_params, #find_attribute, #find_attribute!, #initialize, #set_attributes, #set_defaults
Instance Attribute Details
#hidden ⇒ Object
todo: löschen?
6 7 8 |
# File 'lib/interview/controls/progress_bar.rb', line 6 def hidden @hidden end |
Instance Method Details
#build(b) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/interview/controls/progress_bar.rb', line 8 def build(b) html_class = @html_class html_class << 'progress' html_class << 'collapse' if @hidden b.section html_class: html_class, html_options: @html_options do b.section html_class: 'progress-bar bar', html_options: { style: 'width: 0%' } end end |