Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4999

searchbox can select the first matched items by default

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 9.5.1.3
    • None
    • None

      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.

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: