Class: UiBibz::Ui::Ux::Tables::TableSearchField
- Inherits:
-
Core::Component
- Object
- Base
- Core::Component
- UiBibz::Ui::Ux::Tables::TableSearchField
- Defined in:
- lib/ui_bibz/ui/ux/tables/table_search_field.rb
Constant Summary
Constants inherited from Core::Component
Core::Component::BREAKPOINTS, Core::Component::SIZES, Core::Component::STATUSES
Instance Attribute Summary
Attributes inherited from Core::Component
#content, #html_options, #options
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(content = nil, options = nil, html_options = nil) ⇒ TableSearchField
constructor
Initialize search_field with component item.
-
#pre_render ⇒ Object
Render html tag.
Methods inherited from Core::Component
Methods included from PopoverExtension
#popover_data_html, #tooltip_data_html
Methods included from GlyphExtension
#generate_glyph, #glyph_and_content_html
Methods included from KlassExtension
#exclude_classes, #exclude_classes_in_html_options, #join_classes, #status
Methods inherited from Base
#generate_id, #i18n_set?, #inject_url
Constructor Details
#initialize(content = nil, options = nil, html_options = nil) ⇒ TableSearchField
Initialize search_field with component item
7 8 9 10 11 12 |
# File 'lib/ui_bibz/ui/ux/tables/table_search_field.rb', line 7 def initialize(content = nil, = nil, = nil) = # rubocop:disable Lint/ShadowedArgument = content content = nil super end |
Instance Method Details
#pre_render ⇒ Object
Render html tag
15 16 17 18 19 20 21 22 23 |
# File 'lib/ui_bibz/ui/ux/tables/table_search_field.rb', line 15 def pre_render if [:wrap_form] == false search_field_html else form_tag(url_for(url_parameters), method: :get, class: 'form-table-search-field') do search_field_html_in_wrap end end end |