       @$.elems.func = @textarea "#search-func.u-full-width",
        value: '-> false'
        on: {change: @$.on.change}
+
+     @$.elems.btn = @button '.u-full-width.button-primary', 'Apply',
+      on: {click: @$.on.apply}
      @button '.u-full-width', on: {click: @$.on.cancel}, 'Cancel'
 
     @_setData() if @table?

   @initialize ->
    @elems.inputs = {}

   operationName: 'Search Rows'
   @operationName: 'Search Rows'
   type: 'searchRows'
   @type: 'searchRows'

   json: ->
    table: @table.id
    search: @search

   setJson: (json) ->
    @search = json.search

    highlight = (true for i in [0...@table.size])
    for r in [0...@table.size]
     args = (@table.data[id][r] for id of @search)
     result = func.apply null, args
     if result? and result isnt false
      highlight[r] = true
     else
      highlight[r] = false
