class Bootstrap4RailsComponents::Bootstrap::Components::Progress
Bootstrap
Parent Progress
Component getbootstrap.com/docs/4.1/components/progress/
Public Instance Methods
component_family()
click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/components/progress.rb, line 11 def component_family :progress end
height()
click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/components/progress.rb, line 15 def height options.fetch(:height, nil) end
render() { |: body)| ... }
click to toggle source
Calls superclass method
Bootstrap4RailsComponents::Bootstrap::Components::Base#render
# File lib/bootstrap4_rails_components/bootstrap/components/progress.rb, line 26 def render super do if body (block_given? ? yield : body) else Bootstrap4RailsComponents::Bootstrap::Components::ProgressBar.new({ theme: theme, label: label, progress: progress, striped: striped, animated: animated }, view_context).render end end end
style()
click to toggle source
Calls superclass method
Bootstrap4RailsComponents::Bootstrap::Components::Base#style
# File lib/bootstrap4_rails_components/bootstrap/components/progress.rb, line 19 def style [ super, ("height: #{height}px;" if height) ].join(' ').squish end
Private Instance Methods
non_html_attribute_options()
click to toggle source
Calls superclass method
Bootstrap4RailsComponents::Bootstrap::Utilities::Progressable#non_html_attribute_options
# File lib/bootstrap4_rails_components/bootstrap/components/progress.rb, line 38 def non_html_attribute_options super.push(:height) end