Search

Simplicite.UI.View. Search

Description:
  • Object search rendering

Parameters:
Name Type Description
app Simplicite.Ajax

Ajax service

ui Simplicite.UI.Engine

Main UI controller

view Simplicite.UI.View.Main

View services

Methods

display(ctn, o, p, cbk)

Description:
  • Build the search form

Parameters:
Name Type Description
ctn jQuery

parent container

o Simplicite.Ajax.BusinessObject

object

p Simplicite.UI.Globals.search

optional parameters

cbk function

optional callback

helper(f, input, type, onOk)

Description:
  • Helper to assist common filter expression

Parameters:
Name Type Description
f Simplicite.Ajax.ObjectField

object field

input jQuery

search input to assist

type string

helper type 'number' or 'string'

onOk function

optional callback(expression)

predef(ctn, o, p, filters, update, close)

Description:
  • Predefined search selector

Parameters:
Name Type Description
ctn jQuery

parent container

o Simplicite.Ajax.BusinessObject

object

p Object

search parameters with fields and predef services

filters Object

Current form filters

update function

callback to update the form with selected search

close function

callback to return to form

sortby(ctn, o, p, apply, close)

Description:
  • Sort/Group by columns editor

Parameters:
Name Type Description
ctn jQuery

parent container

o Simplicite.Ajax.BusinessObject

object

p Object

search parameters

apply function

callback to process the sort on list

close function

callback to return to form