-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
im using ZK 6.x
i have a Combobox.
i want that drop down menu shows all elements that contains the new characters entered not only that that starts with
i've tried variuos approaches:
es
chosenBox.addEventListener(Events.ON_CHANGING, new EventListener...
@Listen("onChanging=#chosenbox")
public void ononChangingChosenbox(@ContextParam(ContextType.TRIGGER_EVENT) InputEvent event){
@Listen("onChanging=#chosenbox")
public void ononChangingChosenbox( InputEvent event){
in zul page: <chosenbox id="chosenbox" autodrop="true" open="true" instant="true" onChanging= "onChanging()"
the event is never fired when i type new charathers in the chosenbox with all these approaches
I think you're looking for the onSearching
event.
https://www.zkoss.org/wiki/ZKComponentReference/Input/Chosenbox#Supported_Events
here just a quick test (only onSearching
will fire):
<zk>
<chosenbox width="300px"
onChanging="Clients.log(event.getName() + ' ' + event.getValue())"
onSearching="Clients.log(event.getName() + ' ' + event.getValue())"
/>
</zk>
Asked: 2021-03-24 01:20:11 +0800
Seen: 9 times
Last updated: Mar 24 '21
Scroll a tree to display the opened node on top of the container
"Servlet.service()" pour la servlet zkLoader a généré une exception
mergeExceptionInfo not merging permission errors
Use only Swipe-Event right-left
the import org.zkoss.zul cannot be resolved
ZK with bootstrap : ComboBox problem