Sha256: 8266f6ee45406cc00950d57e8c1b3e7be4533595d1f8f7cdb941441fd06cb097

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

module Netzke
  module Basepack
    # This plugin allows you to add form fields to any docked item (toolbar) of the grid, bind them to model
    # attribute, and assign the search operator. The grid will be updated on changing those fields, to reflect the
    # query.
    #
    # See GridWithLiveSearch for a usage example.
    #
    # == Configuration:
    #
    # [delay] - the delay between changing the value of the search fields, and the moment when the query is being issued
    # to the server; defaults to 500 (ms).
    #
    # == Configuring query fields
    #
    # Each field accepts the following parameters:
    #
    # [attr] - name of the attribute to be searched on; to search on associations, use the double-underscore notation
    # [op] - operation to apply for this attribute. Possible values are: contains, eq, gt, lt, gteq, lteq
    #
    # == Known issues
    #
    # Trying to search on a *virtual* column that is *not shown* in the grid will break. A fix would require refactoring
    # of +Grid::Columns+.
    class GridLiveSearch < Netzke::Plugin
      js_configure do |c|
        c.mixin
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netzke-basepack-0.9.0.rc1 lib/netzke/basepack/grid_live_search.rb