braunstetter/choosy-type 问题修复 & 功能扩展

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

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

braunstetter/choosy-type

最新稳定版本:v0.1.6

Composer 安装命令:

composer require braunstetter/choosy-type

包简介

The FormType for the @michael-brauner/choosy choice-picker.

README 文档

README

This bundle brings @michael-brauner/choosy into your symfony application.

It is just a nice wrapper around the standard symfony ChoiceType and EntityType form fields.
It gives you the ability to turn it into a nice tag picker.

Installation

composer require braunstetter/choosy

Usage

$form->add('choices', ChoosyType::class, [
    'choices'  => [
        'Maybe' => null,
        'Yes' => true,
        'No' => false,
    ],
]);

// for entities
$form->add('choices', ChoosyEntityType::class, [
    'class' => Tag:class
]);

Options

You can pass the same options as you would do directly to the javascript component.
All available options are documented here.

Contributing

If you think this bundle could still be improved and expanded, then we welcome your PR.

Testing

To make sure everything works fine - you have to run the test suite.

You need to make sure Panther is working properly on your machine. Then your tests should work fine performing a simple:

composer install
vendor/bin/bdi detect drivers
yarn --cwd ./src/Resources/assets install --force
yarn --cwd ./tests/app install --force
yarn --cwd ./src/Resources/assets  dev
yarn --cwd ./tests/app dev

./vendor/phpunit/phpunit/phpunit

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固