burnbright / silverstripe-asmselectfield
选择多个字段,通过javascript增强。
dev-master
2015-01-21 02:13 UTC
Requires
- silverstripe/framework: ~3.1
This package is auto-updated.
Last update: 2024-08-24 19:53:18 UTC
README
选择多个字段,通过javascript增强。
https://code.google.com/p/jquery-asmselect/
示例用法
//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); }