Class: Component::Searchbar::Cell
- Inherits:
-
Cell
- Object
- Cell
- Component::Searchbar::Cell
- Includes:
- Ransack::Helpers::FormHelper
- Defined in:
- app/cells/lato_view/component/searchbar/cell.rb
Constant Summary collapse
- @@styles =
VIEW_COMPONENTSTYLES
Instance Attribute Summary collapse
-
#custom_class ⇒ Object
Returns the value of attribute custom_class.
-
#elements ⇒ Object
Returns the value of attribute elements.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#method ⇒ Object
Returns the value of attribute method.
-
#remote ⇒ Object
Returns the value of attribute remote.
-
#style ⇒ Object
Returns the value of attribute style.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(elements: nil, filter: nil, url: nil, method: 'get', style: 'normal', remote: false, custom_class: '') ⇒ Cell
constructor
A new instance of Cell.
- #show ⇒ Object
Constructor Details
#initialize(elements: nil, filter: nil, url: nil, method: 'get', style: 'normal', remote: false, custom_class: '') ⇒ Cell
Returns a new instance of Cell.
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/cells/lato_view/component/searchbar/cell.rb', line 12 def initialize(elements: nil, filter: nil, url: nil, method: 'get', style: 'normal', remote: false, custom_class: '') # save params @elements = elements @filter = filter @url = url @method = method @style = style @remote = remote @custom_class = custom_class # check params check_params end |
Instance Attribute Details
#custom_class ⇒ Object
Returns the value of attribute custom_class.
9 10 11 |
# File 'app/cells/lato_view/component/searchbar/cell.rb', line 9 def custom_class @custom_class end |
#elements ⇒ Object
Returns the value of attribute elements.
9 10 11 |
# File 'app/cells/lato_view/component/searchbar/cell.rb', line 9 def elements @elements end |
#filter ⇒ Object
Returns the value of attribute filter.
9 10 11 |
# File 'app/cells/lato_view/component/searchbar/cell.rb', line 9 def filter @filter end |
#method ⇒ Object
Returns the value of attribute method.
9 10 11 |
# File 'app/cells/lato_view/component/searchbar/cell.rb', line 9 def method @method end |
#remote ⇒ Object
Returns the value of attribute remote.
9 10 11 |
# File 'app/cells/lato_view/component/searchbar/cell.rb', line 9 def remote @remote end |
#style ⇒ Object
Returns the value of attribute style.
9 10 11 |
# File 'app/cells/lato_view/component/searchbar/cell.rb', line 9 def style @style end |
#url ⇒ Object
Returns the value of attribute url.
9 10 11 |
# File 'app/cells/lato_view/component/searchbar/cell.rb', line 9 def url @url end |
Instance Method Details
#show ⇒ Object
26 27 28 |
# File 'app/cells/lato_view/component/searchbar/cell.rb', line 26 def show render 'show.html' end |