Class: RubyUI::DataTableRowCheckbox

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby_ui/data_table/data_table_row_checkbox.rb

Constant Summary

Constants inherited from Base

Base::TAILWIND_MERGER

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Constructor Details

#initialize(value:, name: "ids[]", label: nil, **attrs) ⇒ DataTableRowCheckbox

Returns a new instance of DataTableRowCheckbox.



5
6
7
8
9
10
# File 'lib/ruby_ui/data_table/data_table_row_checkbox.rb', line 5

def initialize(value:, name: "ids[]", label: nil, **attrs)
  @value = value
  @name = name
  @label = label
  super(**attrs)
end

Instance Method Details

#view_templateObject



12
13
14
# File 'lib/ruby_ui/data_table/data_table_row_checkbox.rb', line 12

def view_template
  render RubyUI::Checkbox.new(**attrs)
end