User Story
As an end-user, when I type some characters in searchbox, I want the searchbox can select the first matched item by default, so that I can just press enter to select the item.
Acceptance Criteria
<zscript>
SimpleListModel model = new SimpleListModel(new String[] {
"North America", "South America", "Europe", "Asia", "Africa", "Oceania", "Antarctica"
});
</zscript>
<searchbox model="${model}" placeholder="An unknown place" autoclose="true">
<template name="model">
<html><![CDATA[
<i class="z-icon-globe"></i> ${each}
]]></html>
</template>
</searchbox>
1. Type Nor in the searchbox
2. press enter
3. North America is selected.
Details
- In current behavior, an end-user has to press down to highlight the item and press enter to select.
- With this feature, it will make Searchbox have the same benefits as the auto-complete of Combobox.