Class: InnerPlan::Groups::RowComponent
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- InnerPlan::Groups::RowComponent
- Includes:
- Phlex::Rails::Helpers::DOMID, Phlex::Rails::Helpers::LinkTo
- Defined in:
- app/components/inner_plan/groups/row_component.rb
Instance Method Summary collapse
-
#initialize(list, context: nil) ⇒ RowComponent
constructor
A new instance of RowComponent.
- #template ⇒ Object
Constructor Details
#initialize(list, context: nil) ⇒ RowComponent
Returns a new instance of RowComponent.
6 7 8 9 |
# File 'app/components/inner_plan/groups/row_component.rb', line 6 def initialize(list, context: nil) @list = list @context = context end |
Instance Method Details
#template ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/components/inner_plan/groups/row_component.rb', line 11 def template div(data: { update_url: helpers.update_position_group_path(list), id: list.id }) { div(class: 'd-flex w-100 mb-1', style: 'line-height: 1.7rem') { render(InnerPlan::Groups::Row::HandleComponent.new(list)) div(class: "ms-1 w-100") { strong { link_to(list.title, helpers.group_path(list), class: 'text-reset text-decoration-none') } } } render(InnerPlan::Lists::OngoingTasksComponent.new(list, context: context)) } end |