silverstripe / zenautocompletefield
A basic autocomplete text field using jquery ui
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:silverstripe-module
Requires
- php: >=5.3.2
- silverstripe/cms: >=3.0.3
- silverstripe/framework: >=3.0.3
Replaces
This package is auto-updated.
Last update: 2023-03-08 07:06:11 UTC
README
A basic autocomplete text field using jquery ui
Maintainer
Requirements
SilverStripe 3.0
Installation
Copy the module into your project root directory, rename the folder to "zenautocompletefield", run dev/build
Usage
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.
$field = new ZenAutoCompleteField('FieldName', 'Field Name');
$field->setSuggestions(array(
'suggestion one',
'suggestion two',
'suggestion three',
));
$fields->addFieldToTab('Root.Test', $field);