class NfgUi::Bootstrap::Components::CardImage

Bootstrap Card Header getbootstrap.com/docs/4.1/components/card/#header-and-footer

Public Instance Methods

component_family() click to toggle source
# File lib/nfg_ui/bootstrap/components/card_image.rb, line 9
def component_family
  :card
end
image() click to toggle source
# File lib/nfg_ui/bootstrap/components/card_image.rb, line 13
def image
  options.fetch(:image, '')
end
render() click to toggle source
# File lib/nfg_ui/bootstrap/components/card_image.rb, line 17
def render
  image_tag image, **html_options
end

Private Instance Methods

component_css_class() click to toggle source
# File lib/nfg_ui/bootstrap/components/card_image.rb, line 23
def component_css_class
  'card-img'
end
non_html_attribute_options() click to toggle source
# File lib/nfg_ui/bootstrap/components/card_image.rb, line 27
def non_html_attribute_options
  super.push(:image)
end