burnbright/silverstripe-asmselectfield

Select multiple fields, with enhancement by javascript.

Installs: 68

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

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-03-24 18:53:32 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);
}