Index

Simplicite.UI.View. Index

new Index(app, engine, view)

Description:
  • Index search rendering

Parameters:
Name Type Description
app Simplicite.Ajax

Ajax service

engine Simplicite.UI.Engine

Main controller

view Simplicite.UI.View.Main

View services

Members

(inner) _index

Methods

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