AutocompleteListΒΆ

/libs/granite/ui/components/coral/foundation/form/autocomplete/list

Warning

Deprecation

The parent Autocomplete is deprecated.

The suggestion implementation showing the list to the user.

It has the following content structure:

granite:FormAutocompleteList
  1. granite:commonAttrs
srcstringel

The URI Template that is giving the response of HTML of the suggestion. The format of the HTML is a stream of li elements. For example:

<li class="coral-SelectList-item coral-SelectList-item--option" data-value="itemvalue1">Item Display 1</li>
<li class="coral-SelectList-item coral-SelectList-item--option" data-value="itemvalue2">Item Display 2</li>

The URI Template supports start, end, query variables.

start
The start index of the paging of selection items to be returned.
end
The end index of the paging of selection items to be returned.
query
The text that the user queries for.

Example:

/path.html?start={start}&end={end}&query={query}&my-other-param=param1

If this property is not set, the items are read from the DataSource.