承接 zgb7mtr/yii2-bootstrap-color-picker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

zgb7mtr/yii2-bootstrap-color-picker

Composer 安装命令:

composer require zgb7mtr/yii2-bootstrap-color-picker

包简介

Bootstrap Colorpicker widget for Yii2.

README 文档

README

Renders a Bootstrap ColorPicker plugin.

Installation

The preferred way to install this extension is through composer.

Either run

composer require zgb7mtr/yii2-bootstrap-color-picker:~1.0

or add

"zgb7mtr/yii2-bootstrap-color-picker" : "~1.0"

to the require section of your application's composer.json file.

Usage

This widget renders a Bootstrap ColorPicker input control. Best suitable for model with date string attribute.

Example of use with a form
There are two ways of using it, with an ActiveForm instance or as a widget setting up its model and attribute.

<?php
use zgb7mtr\colorPicker\ColorPicker;

// as a widget
?>

<?= ColorPicker::widget([
    'model' => $model,
    'attribute' => 'color',
]);?>

<?php 
// with an ActiveForm instance 
?>
<?= $form->field($model, 'color')->widget(
    ColorPicker::className());?>

Example of use without a model

<?php
use zgb7mtr\colorPicker\ColorPicker;
?>
<?= ColorPicker::widget([
    'name' => 'Test',
    'value' => '#CCCCCC'
]);?>

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-01-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固