class NfgUi::Components::Patterns::Card
Card
doesn't have any customizations unique to the design system yet As such, the NFG UI
card is simply a bootstrap card behind the scenes. Traits
will eventually be connected here.
Public Instance Methods
render()
click to toggle source
TODO: Confirm that the image overlays are correct. The tops are not being rounded. Should they be?
Calls superclass method
NfgUi::Bootstrap::Components::Card#render
# File lib/nfg_ui/components/patterns/card.rb, line 17 def render if render_in_body super else content_tag(:div, html_options) do body end end end
render_in_body()
click to toggle source
# File lib/nfg_ui/components/patterns/card.rb, line 27 def render_in_body options.fetch(:render_in_body, true) end
Private Instance Methods
non_html_attribute_options()
click to toggle source
Calls superclass method
NfgUi::Components::Utilities::Renderable#non_html_attribute_options
# File lib/nfg_ui/components/patterns/card.rb, line 33 def non_html_attribute_options super.push(:render_in_body) end