SearchEvents

SearchEvents

Register events on Search Panel, Search Element, Input element and so on..

Constructor

new SearchEvents(options, context)

Parameters:
Name Type Description
options *

options

context *

search instance

Methods

addEvents()

Register events on Search Panel, Search Element, Input element and so on..

bindEvents()

Binds events

clearAdvancedSearch()

Reset field values in search and trigger a force search

onCriteriaUpdate()

Update field visibility on criteria update and trigger search if searchOnCriteriaUpdate is enabled.

onKeyDown(event)

Prevent: (1) submit on enter and (2) clearing input when hitting esc

Parameters:
Name Type Description
event object

event object

onKeyUp(event)

Clear and trigger search result if criteria changes

Parameters:
Name Type Description
event object

event object

onWindowKeyUp(event)

Close the search on escape click

Parameters:
Name Type Description
event object

event object

saveCustomization(customization)

Saves customization

Parameters:
Name Type Description
customization Object

saveSearchPanelCustomization(input)

Save search panel customization

Parameters:
Name Type Description
input Object

Search panel customization

searchOnEnter(event)

Trigger search when enter is pressed

Parameters:
Name Type Description
event object

event object