API svyNavigationUX

Functions

addGlobalSearchListener(listener)

getVersion()String Gets the version of this module

removeGlobalSearchListener(listener)

triggerGlobalSearch(searchText)

addGlobalSearchListener(listener)

ParamType

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)

ParamType

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)

ParamType

searchText

String


Last updated