Class: Ui::Checklist::ItemComponent

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

Instance Method Summary collapse

Instance Method Details

#renderObject



11
12
13
14
15
16
17
# File 'app/components/spark/ui/checklist/item_component.rb', line 11

def render
  tag.div(tag_attrs) {
    concat render_icon_tag if icon
    concat tag.div(text, class: "#{join_class("content")} #{complete_class}")
    concat render_action_tag unless completed
  }
end