Class: FlexiAdmin::Components::Actions::CheckboxComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/flexi_admin/components/actions/checkbox_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, scope:, select_all: false) ⇒ CheckboxComponent

Returns a new instance of CheckboxComponent.



7
8
9
10
11
# File 'lib/flexi_admin/components/actions/checkbox_component.rb', line 7

def initialize(id:, scope:, select_all: false)
  @id = id
  @scope = scope
  @select_all = select_all
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/flexi_admin/components/actions/checkbox_component.rb', line 5

def id
  @id
end

#scopeObject (readonly)

Returns the value of attribute scope.



5
6
7
# File 'lib/flexi_admin/components/actions/checkbox_component.rb', line 5

def scope
  @scope
end

#select_allObject (readonly)

Returns the value of attribute select_all.



5
6
7
# File 'lib/flexi_admin/components/actions/checkbox_component.rb', line 5

def select_all
  @select_all
end