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

Inherits:
Base
  • Object
show all
Defined in:
lib/ui_bibz/ui/ux/table/table_search_field.rb

Instance Attribute Summary

Attributes inherited from Base

#output_buffer

Instance Method Summary (collapse)

Methods inherited from Base

#i18n_set?

Constructor Details

- (TableSearchField) initialize(options = nil, html_options = nil)

Initialize search_field with component item



6
7
8
# File 'lib/ui_bibz/ui/ux/table/table_search_field.rb', line 6

def initialize options = nil, html_options = nil
  @search_field = UiBibz::Ui::Core::Component.new nil, options, html_options
end

Instance Method Details

- (Object) render

Render html tag



11
12
13
14
15
16
17
18
19
# File 'lib/ui_bibz/ui/ux/table/table_search_field.rb', line 11

def render
  if @search_field.options[:wrap_form] != false
    form_tag(url_for(url_parameters), method: :get, class: 'form-table-search-field') do
      search_field_html
    end
  else
    search_field_html
  end
end