Class: UiBibz::Ui::Ux::Tables::TableSearchField

Inherits:
Core::Component show all
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

#output_buffer

Instance Method Summary collapse

Methods inherited from Core::Component

#render, #tapped?

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, options = nil, html_options = nil)
  html_options = options # rubocop:disable Lint/ShadowedArgument
  options = content
  content = nil
  super
end

Instance Method Details

#pre_renderObject

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 options[: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