2amigos/yii2-switchery-widget 问题修复 & 功能扩展

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

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

2amigos/yii2-switchery-widget

最新稳定版本:1.0.2

Composer 安装命令:

composer require 2amigos/yii2-switchery-widget

包简介

iOS 7 style switch widget for Yii2.

README 文档

README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

Yii2 wrapper for iOS 7 style switches for your checkboxes

Install

Via Composer

$ composer require 2amigos/yii2-switchery-widget

or add inside compsoer.json

"2amigos/yii2-switchery-widget": "*"

to the require section of your composer.json file.

Usage

use dosamigos\switchery\Switchery; use yii\web\JsExpression; // usage with model echo $form->field($model, 'is_required')->widget(Switchery::className(), [ 'options' => [ 'label' => false ], 'clientOptions' => [ 'color' => '#5fbeaa', ] ]); // usage without model echo Switchery::widget([ 'name' => 'is_required', 'value' => $model->is_required, 'clientOptions' => [ 'color' => '#5FBEAA', 'secondaryColor' => '#CCCCCC', 'jackColor' => '#FFFFFF', ], 'clientEvents' => [ 'change' => new JsExpression('function() {  console.log("Cool! You changed my state.");  }') ] ]); 

Testing

$ phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

License

The BSD License (BSD). Please see License File for more information.

687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67
web development has never been so fun
www.2amigos.us

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固