module Bootstrap4RailsComponents::Bootstrap::Utilities::Progressable
Shared methods between Progress & ProgressBar.
Public Instance Methods
animated()
click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb, line 8 def animated options.fetch(:animated, false) end
label()
click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb, line 12 def label # options.fetch(:label, nil) options[:label] == true ? "#{progress}%" : options[:label] || body end
progress()
click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb, line 17 def progress options[:progress] || 0 end
striped()
click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb, line 21 def striped options.fetch(:striped, false) end
theme()
click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb, line 25 def theme options.fetch(:theme, nil) end
Private Instance Methods
non_html_attribute_options()
click to toggle source
Calls superclass method
# File lib/bootstrap4_rails_components/bootstrap/utilities/progressable.rb, line 31 def non_html_attribute_options super.push(:animated, :height, :label, :progress, :striped, :theme) end