/ui/elements/searchbox

Exports the searchbox(component) method as mapp.ui.elements.searchbox() to create a searchbox ui component.

Methods

(inner) searchbox(component) → {Object}

Creates a searchbox input element which executes the provided searchFunction with the event argument on input and focus events.

Parameters:
NameTypeDescription
componentObject

The component object to be decorated.

Properties
NameTypeAttributesDefaultDescription
searchFunctionfunction

The function to execute on input or focus events.

targetHTMLElement<optional>
<DIV>

The target element to append to.

Returns:

The decorated component object.

Type: 
Object