Class: Ui::ChecklistTriggerComponent

Inherits:
SparkComponents::Component
  • Object
show all
Defined in:
app/components/spark/ui/checklist_trigger_component.rb

Instance Method Summary collapse

Instance Method Details

#renderObject



9
10
11
12
13
14
15
16
17
18
19
# File 'app/components/spark/ui/checklist_trigger_component.rb', line 9

def render
  (:div, tag_attrs) do
    concat (:div, class: join_class("icon-wrapper")) {
      @view.use_svg(icon, class: join_class("icon"), width: "14px")
    }
    concat (:div, class: join_class("content")) {
      concat (:div, title, class: join_class("title"))
      concat (:div, subtitle, class: join_class("subtitle"))
    }
  end
end