承接 live-controls/masks 相关项目开发

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

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

live-controls/masks

最新稳定版本:v2.2.2

Composer 安装命令:

composer require live-controls/masks

包简介

Input Masks library for live-controls

README 文档

README

Release Version Packagist Version Input Masks library for live-controls

Requirements

  • Laravel 9+
  • Livewire 2+

Translations

  • English (en)
  • German (de)
  • Brazilian Portuguese (pt_BR)

Installation

  1. Install Masks package
composer require live-controls/masks

CDN Installation

  1. Include @livecontrolsMasks() before /head tag
  2. In case you did publish the configuration file, set local_files to false (This is the default option)

Local Installation

  1. Run:
npm install imask
  1. Add to app.js:
import IMask from 'imask';
  1. Run:
npm run build;
  1. Run:
php artisan vendor:publish --tag="livecontrols.masks.config";
  1. Edit config/livecontrols-masks.php:
'local_files' => true, //Set local_files to true

Usage

@livewire('livecontrols-currencymask', [
'maskId' => 'someUniqueId',
'maskName' => 'someUniqueName',
'unmaskedId' => 'idforhiddeninput',
'unmaskedName' => 'nameforhiddeninput',
'class' => 'input input-bordered w-full',
'required' => true,
'value' => 'set to something if you want to use it for update',
'currencyString' => 'R$',
'updateCallName' => 'WillBeFiredIfValueGotUpdated'
], key())

To update a value call:

$this->dispatch('update-mask-value-maskId', value: 500);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-08-25