Readonly
defaultIndex of the default item that should be entered if none is selected
Readonly
errorA string describing the cause of a search failure
Readonly
matchThe number of matches
Readonly
searchThe result of the search
Readonly
searchindicates success with matches and that the search is still ongoing The original search string
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Appends a match consisting of the given value, comment, image, style and the value to use for defaultIndex completion.
The value to autocomplete to
Comment shown in the autocomplete widget to describe this match
Image shown in the autocomplete widget for this match.
Describes how to style the match in the autocomplete widget
Value used when the user confirms selecting this match. If not provided, aValue will be used.
Inserts a match consisting of the given value, comment, image, style and the value to use for defaultIndex completion at a given position.
The index to insert at
The value to autocomplete to
Comment shown in the autocomplete widget to describe this match
Image shown in the autocomplete widget for this match.
Describes how to style the match in the autocomplete widget
Value used when the user confirms selecting this match. If not provided, aValue will be used.
Generated using TypeDoc
This class implements nsIAutoCompleteResult and provides simple methods for setting the value and result items. It can be used whenever some basic auto complete results are needed that can be pre-generated and filled into an array.