class NfgUi::Components::Patterns::Collapse
Button Group doesn't have any customizations unique to the design system yet As such, the NFG UI
button group is simply a bootstrap button group behind the scenes. Traits
will eventually be connected here.
Public Instance Methods
render()
click to toggle source
Calls superclass method
NfgUi::Bootstrap::Components::Base#render
# File lib/nfg_ui/components/patterns/collapse.rb, line 18 def render capture do if heading opts = { collapse: "##{id}", body: heading, icon: 'caret-down', class: 'pl-0 text-left' } opts.merge!(traits: [:link, :block]) concat(NfgUi::Components::Elements::Button.new(opts, view_context).render) end concat(super) end end