定制 reg2005/oc-range 二次开发

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

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

reg2005/oc-range

Composer 安装命令:

composer require reg2005/oc-range

包简介

Widget range for october CMS

README 文档

README

alt text

How to use:

1. Just add into your plugin or project composer.json:
{
    "require": {
        "reg2005/oc-range": "1.0.*"
    }
}
2. Go to your october project directory use terminal, and run command:

composer update

3. Add to your Plugin.php this:
    public function registerFormWidgets()
    {
        return [
            'reg2005\Widgets\Range\Widget' => [
                'label' => 'range',
                'code'  => 'range'
            ]
        ];
    }

ADD to your fields.yaml something like:

money:
    customLabel: Price
    type: range
    default: 300
    minMax:
      min:
          - 50
      10%:
          - 500
          - 1000
      20%:
          - 1500
          - 2000
      50%:
          - 4000
          - 6000
      60%:
          - 6000
          - 10000
      max:
          - 10000
    span: full

OR:

money:
    customLabel: Price
    type: range
    default: 300
    minMax:
    min: 50
    max: 1000
    span: full

统计信息

  • 总下载量: 824
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固