Class: FlexiAdmin::Components::Actions::CheckboxComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- FlexiAdmin::Components::Actions::CheckboxComponent
- Defined in:
- lib/flexi_admin/components/actions/checkbox_component.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#select_all ⇒ Object
readonly
Returns the value of attribute select_all.
Instance Method Summary collapse
-
#initialize(id:, scope:, select_all: false) ⇒ CheckboxComponent
constructor
A new instance of CheckboxComponent.
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
#id ⇒ Object (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 |
#scope ⇒ Object (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_all ⇒ Object (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 |