dev-master
9999999-devA basic autocomplete text field using jquery ui
The Requires
by Shea Dawson
silverstripe forms
Wallogit.com
2017 © Pedro Peláez
A basic autocomplete text field using jquery ui
A basic autocomplete text field using jquery ui, (*1)
shea@livesource.co.nz, (*2)
SilverStripe 3.0, (*3)
Copy the module into your project root directory, rename the folder to "zenautocompletefield", run dev/build, (*4)
Using this field is just the same as a TextField, only with the additional requirement of calling the setSuggestions() method, to populate the autocomplete data., (*5)
$field = new ZenAutoCompleteField('FieldName', 'Field Name');
$field->setSuggestions(array(
'suggestion one',
'suggestion two',
'suggestion three',
));
$fields->addFieldToTab('Root.Test', $field);
A basic autocomplete text field using jquery ui
silverstripe forms