定制 heyday/silverstripe-colorpalette 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Color Palette 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

GitHub 信息

  • Stars: 23
  • Watchers: 31
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-07-14