fullscreeninteractive / silverstripe-dropdownimagefield
支持图像的SilverStripe CMS下拉字段
1.0.0
2016-10-15 22:32 UTC
Requires
- silverstripe/cms: ~3.1
- silverstripe/framework: ~3.1
This package is auto-updated.
Last update: 2024-08-30 03:55:40 UTC
README
添加一个DropdownImageField
字段,允许您在标题旁边显示图像。使用Chosen.js插件(由SS使用),Image-Select。该插件已修改。
需求
SilverStripe 4.0+
用法
示例
DropdownImageField::create('LanguageID', 'Select language', LanguageObj::get(), // Source for items. 'ID', // Key field on item. 'Title', // Caption field on item. 'Icon' // Image field on item. Can be a method/relation that returns an image. )
说明
此插件使用带额外参数的setTimeout
函数。加载polyfill以支持IE9及以下版本。