new SearchAndConnect(options, onClickData, dataTable)
Parameters:
Name | Type | Description |
---|---|---|
options |
object | searchconfig options |
onClickData |
object | search and connect options |
dataTable |
object | datatable instance |
Methods
(static) createSearch()
Factory method
(static) getSearch(config) → {*}
Parameters:
Name | Type | Description |
---|---|---|
config |
Returns:
- Type
- *
(static) startSearch(input)
Parameters:
Name | Type | Description |
---|---|---|
input |
applyCustomization()
Applies customization associated with search on search options. Keeps search panel open or close.
close()
destroy()
getCriteriaAsQueryString() → {string}
Returns criteria in form of query string
Returns:
- Type
- string
getQuery() → {Object}
Returns:
- Type
- Object
getSearchLimit(searchForm) → {*|number}
Returns the search limit, if its empty then returns the default search limit
Parameters:
Name | Type | Description |
---|---|---|
searchForm |
Returns:
- Type
- * | number
getTerm() → {Object}
Returns:
- Type
- Object
isOpen() → {boolean}
Returns:
- Type
- boolean
off(event, handler)
Parameters:
Name | Type | Description |
---|---|---|
event |
||
handler |
on()
Events
open()
performConnectOperation()
resizeModal()
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
|
setCriteria(criteria)
Parameters:
Name | Type | Description |
---|---|---|
criteria |
Array | Array of search criterion objects |
setCriteriaAsQueryParams(queryParams)
Parameters:
Name | Type | Description |
---|---|---|
queryParams |
Array | Array of search criterion objects |
setTerm(term)
Parameters:
Name | Type | Description |
---|---|---|
term |