Class: Components::IconButton
- Defined in:
- lib/backpack/components/icon_button.rb
Constant Summary
Constants included from Backpack::Attributes
Backpack::Attributes::HTMLAttribute, Backpack::Attributes::HTMLAttributes, Backpack::Attributes::MandatoryHTMLAttribute
Instance Method Summary collapse
Methods included from Backpack::Classes
Methods included from Backpack::Identifier
Instance Method Details
#view_template ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/backpack/components/icon_button.rb', line 11 def view_template if href? a(href: @href, **root_attributes) { render_icon } else (**root_attributes) { render_icon } end end |