heyday/silverstripe-colorpalette
最新稳定版本:4.0.0
Composer 安装命令:
composer require heyday/silverstripe-colorpalette
包简介
A color palette picker for SilverStripe CMS
README 文档
README
Provides a color picker field in SilverStripe allowing a user to select from defined selection of colors (palette)
Installation (with composer)
$ composer require heyday/silverstripe-colorpalette
Example
Features
- Supports usage in Elemental
Usage
Regular palette
$fields->addFieldToTab( 'Root.Main', Heyday\ColorPalette\Fields\ColorPaletteField::create( 'BackgroundColor', 'Background Color', [ 'White' => '#fff', 'Black' => '#000' ] ) );
Grouped Palette
$fields->addFieldToTab( 'Root.Main', Heyday\ColorPalette\Fields\GroupedColorPaletteField::create( 'BackgroundColor', 'Background Color', array( 'Primary Palette' => [ 'White' => '#fff', 'Black' => '#000' ], 'Secondary Palette' => [ 'Blue' => 'blue', 'Red' => 'red' ] ) ) );
License
SilverStripe Color Palette Field is licensed under an MIT license
统计信息
- 总下载量: 151.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 1
- 依赖项目数: 11
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-07-14
