Revision history [back]

click to hide/show revision 1
initial version

answered 2022-12-19 14:04:06 +0800

MDuchemin gravatar image MDuchemin

ZK Team

Hey there

Even though it is often used as a selection tool, combobox is actual a textbox with autocomplete.

The main field of textbox is "value" (the text value of the field), and that value doesn't need to be matching an entry from the model to be exist in the text input.

As a result, if you want to erase the value of the combobox, you need to bind the value="@load(vm.someStringValue)" and notify change on that value object (with the value itself being null or blank string).

If you only care about selecting a value from a list of values, with filtering: Check-out selectbox (EE): https://www.zkoss.org/wiki/ZKComponentReference/Input/Searchbox

Hey there

Even though it is often used as a selection tool, combobox is actual actually a textbox with autocomplete.

The main field of textbox is "value" (the text value of the field), and that value doesn't need to be matching an entry from the model to be exist in the text input.

As a result, if you want to erase the value of the combobox, you need to bind the value="@load(vm.someStringValue)" and notify change on that value object (with the value itself being null or blank string).

If you only care about selecting a value from a list of values, with filtering: Check-out selectbox (EE): https://www.zkoss.org/wiki/ZKComponentReference/Input/Searchbox

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More