tractorcow/silverstripe-autocomplete

There is no license information available for the latest version (4.0.0-beta1) of this package.

Autocomplete text field for Silverstripe

Installs: 54 230

Dependents: 6

Suggesters: 0

Stars: 33

Watchers: 3

Forks: 30

Type:silverstripe-vendormodule

4.0.0-beta1 2018-02-13 02:11 UTC

README

Autocomplete text field for Silverstripe

usage

A field can be created as follows...

\TractorCow\AutoComplete\AutoCompleteField::create('MyTextField','My Text Field','',null,null,'LookupDataObject','LookupFieldName')

where it will accept values from the following dataobject field...

class LookupDataObject extends DataObject {
	static $db = array(
		'LookupFieldName'				=> 'Varchar',
	);
}