API svyNavigationUX

Functions

addGlobalSearchListener(listener)

getVersion()String

Gets the version of this module

removeGlobalSearchListener(listener)

triggerGlobalSearch(searchText)

addGlobalSearchListener(listener)

Param
Type

listener

function

Example

function onShow(firstShow, event) {
	// listen for a global search event
	scopes.svyNavigationUX.addGlobalSearchListener(globalSearchListener);
}

function globalSearchListener(searchText) {
	// perform a search
}

function onHide(event) {
	// stop listening when hiding the form
	scopes.svyNavigationUX.removeGlobalSearchListener(globalSearchListener)
	return true
}

getVersion() ⇒ String

Gets the version of this module

Returns: String - the version of the module using the format Major.Minor.Revision


removeGlobalSearchListener(listener)

Param
Type

listener

function

Example

function onShow(firstShow, event) {
	// listen for a global search event
	scopes.svyNavigationUX.addGlobalSearchListener(globalSearchListener);
}

function globalSearchListener(searchText) {
	// perform a search
}

function onHide(event) {
	// stop listening when hiding the form
	scopes.svyNavigationUX.removeGlobalSearchListener(globalSearchListener)
	return true
}

triggerGlobalSearch(searchText)

Param
Type

searchText

String


Last updated