\AutocompleteField
Synopsis
class AutocompleteField
extends TextField
{
- // members
- protected array $suggestionData = ;
- // methods
- public void __construct()
- public string Field()
- public void setSuggestionData()
- public string getSuggestionData()
- public string getFieldAttributes()
Hierarchy
Extends
- TextField
Members
protected
- $suggestionData
—
array
This contains the suggestion data source for the field. Should be used when there is a small set of data, otherwise we should use an endpoint instead.
Methods
public
- __construct() — Overloading constructor to add data parameter to populate the suggestion data with.
- Field()
- getFieldAttributes() — Helper to get all field attributes set on input field
- getSuggestionData() — Helper to access the suggestion data and convert to JSON.
- setSuggestionData() — Helper to update the $suggestionData