Class: Ui::ChecklistTriggerComponent
- Inherits:
-
SparkComponents::Component
- Object
- SparkComponents::Component
- Ui::ChecklistTriggerComponent
- Defined in:
- app/components/spark/ui/checklist_trigger_component.rb
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/components/spark/ui/checklist_trigger_component.rb', line 9 def render content_tag(:div, tag_attrs) do concat content_tag(:div, class: join_class("icon-wrapper")) { @view.use_svg(icon, class: join_class("icon"), width: "14px") } concat content_tag(:div, class: join_class("content")) { concat content_tag(:div, title, class: join_class("title")) concat content_tag(:div, subtitle, class: join_class("subtitle")) } end end |