burnbright/silverstripe-asmselectfield

Select multiple fields, with enhancement by javascript.

Installs: 68

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 3

Language:JavaScript

Type:silverstripe-module

dev-master 2015-01-21 02:13 UTC

This package is auto-updated.

Last update: 2024-11-24 20:17:04 UTC


README

Select multiple fields, with enhancement by javascript.

https://code.google.com/p/jquery-asmselect/

Example usage

//decorate member and add the following to updateCMSFields()
$groups = Group::get();
if($groups->exists()){
	$groupslist = new AsmselectField('Groups','Security Groups', $groups->map()->toArray(),$this->owner->Groups()->map('ID','ID')->toArray());
	$fields->addFieldToTab('Root.Security', $groupslist);
}