textwithdelete
The textwithdelete control allows the user to input alphanumeric data using the soft keyboard or the physical keyboard if available. The control also displays a delete icon that helps user to clear the value of the control when tapped on.
Syntax
<div data-juci="textwithdelete"></div>
<div data-juci="textwithdelete" data-trigger="keyup" id="username"></div>
<div data-juci="textwithdelete" data-bind="ref: someKey"></div>
Attributes
-
data-juci {String} ¶A string with value textwithdelete.
Methods
-
onDeleteClick(handler, context) ¶Registers a handler function to call when the textwithdelete#event:deleteclick event fires.Parameters:
-
handler{Function}
A handler function to execute when the textwithdelete#event:deleteclick event fires.
-
context{Object}
Optional
Context in which the handler function should execute.
- See:
- deleteclick
-
handler{Function}
Events
-
deleteclick(eventObj) ¶ CancellableFires when user taps on the delete icon in the control.Parameters:
-
eventObj{EventObject}
-
eventObj{EventObject}