Class: NfgUi::Bootstrap::Components::ProgressBar
- Includes:
- Utilities::Progressable, Utilities::Themeable
- Defined in:
- lib/nfg_ui/bootstrap/components/progress_bar.rb
Overview
Bootstrap Progress Bar Component getbootstrap.com/docs/4.1/components/progress/
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
#body, #options, #view_context
Instance Method Summary collapse
Methods included from Utilities::Themeable
Methods included from Utilities::Progressable
#animated, #label, #progress, #striped, #theme
Methods inherited from Progress
Methods inherited from Base
#data, #href, #html_options, #id, #initialize
Constructor Details
This class inherits a constructor from NfgUi::Bootstrap::Components::Base
Instance Method Details
#component_family ⇒ Object
12 13 14 |
# File 'lib/nfg_ui/bootstrap/components/progress_bar.rb', line 12 def component_family :progress end |
#render ⇒ Object
23 24 25 |
# File 'lib/nfg_ui/bootstrap/components/progress_bar.rb', line 23 def render content_tag(:div, label, ) end |
#style ⇒ Object
16 17 18 19 20 21 |
# File 'lib/nfg_ui/bootstrap/components/progress_bar.rb', line 16 def style [ [:style], ("width: #{progress.to_i}%;" if progress) ].join(' ').squish end |