class NfgUi::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/nfg_ui/bootstrap/components/progress.rb, line 11
def component_family
  :progress
end
height() click to toggle source
# File lib/nfg_ui/bootstrap/components/progress.rb, line 15
def height
  options.fetch(:height, nil)
end
render() { |: body)| ... } click to toggle source
# File lib/nfg_ui/bootstrap/components/progress.rb, line 19
def render
  super do
    if body
      (block_given? ? yield : body)
    else
      NfgUi::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
# File lib/nfg_ui/bootstrap/components/progress.rb, line 29
def style
  [
    super,
    ("height: #{height}px;" if height)
  ].join(' ').squish
end

Private Instance Methods

non_html_attribute_options() click to toggle source
# File lib/nfg_ui/bootstrap/components/progress.rb, line 38
def non_html_attribute_options
  super.push(:height)
end