Index

Simplicite.UI.View. Index

new Index(app, ui, view)

Description:
  • Index 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

Members

(inner) _index

Methods

filterDialog(list, indexable, cbk)

Description:
  • Filter dialog to pick some objects from user's menu

Parameters:
Name Type Description
list Array

list of selected objects (all if empty)

indexable boolean

true to list indexable objects only

cbk function

callback(list) with selected objects

form(ctn, md, p)

Description:
  • Index search form

Parameters:
Name Type Description
ctn jQuery

container

md Object

search metadata

Properties
Name Type Description
withDocs Array.<Object>

List of business objects with documents

p Object

optional parameters

Properties
Name Type Description
domain string

to search in a specific domain

result(ctn, req, result, p)

Description:
  • Search result rendering in a grid

Parameters:
Name Type Description
ctn jQuery

container

req string

user request

result Array.<Object>

search result

p Object

optional parameters

Properties
Name Type Description
msg string

TEXT code or message

layout string

grid layout (masonry, float, inline, article)

Description:
  • Init index search widget

Parameters:
Name Type Description
sb jQuery

div.searchbox container