承接 diggindata/yii2-signaturepad 相关项目开发

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

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

diggindata/yii2-signaturepad

最新稳定版本:0.0.1

Composer 安装命令:

composer require diggindata/yii2-signaturepad

包简介

Yii2 widget to display a signature pad using https://github.com/INTELOGIE/signature_pad

README 文档

README

This extension provides a Signature Pad widget for Yii framework 2.0.

It wraps the INTELOGIE/signature_pad library.

Latest Stable Version

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist diggindata/yii2-signaturepad

or add

"diggindata/yii2-signaturepad": "@dev"

to the require section of your composer.json, then run composer update.

Usage

In your form model, declare an attribute:

    public $signature;

    public function rules()
    {
        return [
            ...
            ['signature', 'safe'],
        ];
    }

In your form view file, include the widget:

    <?= SignaturePadWidget::widget([
        'model' => $model,
        'attribute' => 'signature',
        'options' => ['style' => 'min-width:300px;min-height:200px;'],
        'showSaveAsJpg' => false,
    ]) ?>

Attributes

model - The form instance, either a yii\db\ActiveRecord or a yii\base\Model instance

attribute - the model's attribute name

showSaveAsJpg - Whether to show the Accept (JPG) and Save (JPG) buttons

showSaveAsPng - Whether to show the Accept (PNG) and Save (PNG) buttons

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2021-10-26