burnbright/silverstripe-asmselectfield

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Select multiple fields, with enhancement by javascript.

Installs: 57

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: 2021-09-24 13:06:35 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);
}