Constructor
new PageSearch(input)
To create an instance, use factory method App.searchV2.createPageSearch
Parameters:
Name | Type | Description |
---|---|---|
input |
object | input |
Methods
addEvents()
addToolbarExportItem()
Adds command to export search to search panel toolbar
applyCustomization()
Applies customization associated with search on search options.
close()
createSearchPanel(input) → {*|Any}
Parameters:
Name | Type | Description |
---|---|---|
input |
Returns:
- Type
- * | Any
destroy()
disableDrag()
getCriteria() → {Object}
Returns:
- Type
- Object
getOptions() → {*}
Returns:
- Type
- *
getPage() → {*}
Returns:
- Type
- *
getQuery() → {Object}
Returns:
- Type
- Object
getSearchAsUrl()
Returns current search criteria as search url
getSearchLimit(searchForm) → {*|number}
Returns the search limit, if its empty then returns the default search limit
Parameters:
Name | Type | Description |
---|---|---|
searchForm |
Returns:
- Type
- * | number
getWidgetsToLoad() → {Array}
Returns widget which should be loaded with search result data server side.
Returns:
- Array of widget which should be loaded server side.
- Type
- Array
handleSearchFormFields(data)
Handles search result data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | Search result data |
initialize()
initializeDragElement()
isLoadResultServerSide() → {boolean}
Whether to perform and load search result server side.
Returns:
- Type
- boolean
isOpen() → {boolean}
Returns:
- Type
- boolean
moveDragElement(leftOffset)
Parameters:
Name | Type | Description |
---|---|---|
leftOffset |
off(event, handler)
Parameters:
Name | Type | Description |
---|---|---|
event |
||
handler |
on()
Events
onCriteriaUpdate()
onCursorMove(start, end)
Parameters:
Name | Type | Description |
---|---|---|
start |
||
end |
onMouseDown(mouseDownEvent)
Parameters:
Name | Type | Description |
---|---|---|
mouseDownEvent |
onReady()
onResult(data, query) → {*|Any}
Parameters:
Name | Type | Description |
---|---|---|
data |
||
query |
Returns:
- Type
- * | Any
open()
removeEvents()
render()
saveCustomization(customization)
Parameters:
Name | Type | Description |
---|---|---|
customization |
Object |
saveSearchPanelCustomization(input)
Parameters:
Name | Type | Description |
---|---|---|
input |
Object | Search panel customization |
search(force)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
force |
false
|
searchAndLoadToWidget(query)
Calls ajax service to perform search and load the widgets with search results server side.
Parameters:
Name | Type | Description |
---|---|---|
query |
Object | Search query |
setState(state)
Parameters:
Name | Type | Description |
---|---|---|
state |