Module: NfgUi::Bootstrap::Utilities::Progressable
- Included in:
- Components::Progress, Components::ProgressBar
- Defined in:
- lib/nfg_ui/bootstrap/utilities/progressable.rb
Overview
Shared methods between Progress & ProgressBar.
Instance Method Summary collapse
Instance Method Details
#animated ⇒ Object
8 9 10 |
# File 'lib/nfg_ui/bootstrap/utilities/progressable.rb', line 8 def animated .fetch(:animated, false) end |
#label ⇒ Object
12 13 14 |
# File 'lib/nfg_ui/bootstrap/utilities/progressable.rb', line 12 def label [:label] == true ? "#{progress}%" : [:label] || body end |
#progress ⇒ Object
16 17 18 |
# File 'lib/nfg_ui/bootstrap/utilities/progressable.rb', line 16 def progress [:progress] || 0 end |
#striped ⇒ Object
20 21 22 |
# File 'lib/nfg_ui/bootstrap/utilities/progressable.rb', line 20 def striped .fetch(:striped, false) end |
#theme ⇒ Object
24 25 26 |
# File 'lib/nfg_ui/bootstrap/utilities/progressable.rb', line 24 def theme .fetch(:theme, nil) end |