Web Component: j-SearchBox
j-SearchBox
The component contains a search box (input).
- jComponent
v19|v20
Configuration:
exec
{String}
a link to thefunction(model, component, changetype)
, it will be executed if the user presses enterautocomplete
{String}
a link to thefunction(component, input)
, it will be executed if the user focuses the search boxinit
{String}
a link to thefunction(component)
, it will be executed if the component is initializedplaceholder
{String}
a placeholder for the search boxcleartype
{Boolean}
clears type when the user will performESC
(default:false
)keypress
{Boolean}
key-press binding (default:false
)autotrim
{Boolean}
trims the value automatically (default:true
)clicktype
{String}
a link to thefunction(component, currenttype, currentvalue)
, it will be executed if the user clicks on thetype
(a newtype
must be set viacomponent.type(html, value)
)
Methods:
component.type(html, id, [noemit])
adds a new type before the search inputcomponent.enter()
performs searching manually- NEW:
component.show()
focuses the input
Author
- Peter Širka petersirka@gmail.com
- License
Created
26. november 2019
Updated
01. february 2023
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Large mode
Yes
Responsive
No
Author
Peter Širka
Email
petersirka@gmail.com