silverstripe/zenautocompletefield

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

A basic autocomplete text field using jquery ui

dev-master 2016-05-02 08:55 UTC

This package is auto-updated.

Last update: 2020-05-08 01:34:37 UTC


README

A basic autocomplete text field using jquery ui

Maintainer

shea@livesource.co.nz

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);