Class: Alchemy::Admin::Resource::CheckboxFilter
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Alchemy::Admin::Resource::CheckboxFilter
- Defined in:
- app/components/alchemy/admin/resource/checkbox_filter.rb
Instance Attribute Summary collapse
-
#checked ⇒ Object
readonly
Returns the value of attribute checked.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#search_form ⇒ Object
readonly
Returns the value of attribute search_form.
Instance Method Summary collapse
-
#initialize(name:, label:, params:) ⇒ CheckboxFilter
constructor
A new instance of CheckboxFilter.
Constructor Details
#initialize(name:, label:, params:) ⇒ CheckboxFilter
Returns a new instance of CheckboxFilter.
18 19 20 21 22 |
# File 'app/components/alchemy/admin/resource/checkbox_filter.rb', line 18 def initialize(name:, label:, params:) @name = name @label = label @checked = get_checked_from(params) end |
Instance Attribute Details
#checked ⇒ Object (readonly)
Returns the value of attribute checked.
7 8 9 |
# File 'app/components/alchemy/admin/resource/checkbox_filter.rb', line 7 def checked @checked end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
7 8 9 |
# File 'app/components/alchemy/admin/resource/checkbox_filter.rb', line 7 def label @label end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'app/components/alchemy/admin/resource/checkbox_filter.rb', line 7 def name @name end |
#search_form ⇒ Object (readonly)
Returns the value of attribute search_form.
7 8 9 |
# File 'app/components/alchemy/admin/resource/checkbox_filter.rb', line 7 def search_form @search_form end |