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)

Returns a new instance of TableSearchField



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

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

Instance Method Details

- (Object) render



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

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