Prefs

Simplicite.UI.View. Prefs

new Prefs(app, ui, view)

Description:
  • Object preferences 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

bookmarks(ctn, bm, p)

Description:
  • Display the user's bookmarks

Parameters:
Name Type Description
ctn string | jquery

optional container (default popup)

bm Object

bookmarks

p Object

options show=top|bottom

display(ctn, o, p)

Description:
  • Build the object preferences dialog

Parameters:
Name Type Description
ctn jQuery

parent container

o Simplicite.Ajax.BusinessObject

object

p Object

parameters

Properties
Name Type Description
list Array.<Object>

array of fields

search Array.<Object>

array of fields

actions Array.<Object>

array of actions

actionLabel boolean

show/hide the action labels ?

restore function

restore handler

save function

save handler

reload function

reload handler

close function

close handler

userFilters(ctn, obj, id, p)

Description:
  • Display the dialog of user global filters

Parameters:
Name Type Description
ctn string | jquery

optional container (dialog if null)

obj Simplicite.Ajax.BusinessObject

UserFilters object

id string

UserFilters id

p Object

options { bar }

userFiltersBadge(ctn, data, remove, click)

Description:
  • Badge of a user filter

Parameters:
Name Type Description
ctn jQuery

badges container

data Object

{ dmin, dmax } or { field, value or values }

remove function

optional handler to remove filter (if not required)

click function

optional handler on click

userFiltersTitle(ctn, obj)

Description:
  • Title of user filters

Parameters:
Name Type Description
ctn string | jQuery

optional container (#userfilters if null)

obj Simplicite.Ajax.BusinessObject

UserFilters object