wiakowe/form-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wiakowe/form-bundle

Composer 安装命令:

composer require wiakowe/form-bundle

包简介

A bundle which contains helper form types to aid our needs: "choice with disabled options", "jquery minicolors colorpicker".

README 文档

README

Set of form types which we have ended up needing.

Travis status: Build Status

Choice with disabled options

The type choice_with_disabled_options works exactly like the choice type, except that it adds an additional option, disabled_choices, which allows you to show some options greyed out.

Example usage:

$formBuilder->add(
    'field',
    'choice_with_disabled_options',
    array(1 => 'First', 2 => 'Second'),
    array(
        'disabled_choices' => array(2)
    )
);

This code will lead, aproximately, to the following HTML:

<select>
    <option value="1">First</option>
    <option value="2" disabled="disabled">Second</option>
</select>

JQuery MiniColors

The JQuery Minicolors type allows adding a color picker to a form. The selected color will be stored as a 6 characters hex with a prepended #. For instance: #ff00ff.

Example usage:

$formBuilder->add('field', 'jquery_minicolors');

For this plugin to work properly, it requires that the user has loaded the JQuery Minicolors library.

Next steps

  • Validate that choice_with_disabled_options doesn't receive a disabled choice.
  • Make choice_with_disabled_options work with the expanded template.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-07-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固