2017 © Pedro Peláez
 

yii2-extension yii2-widget-maskedinputdatepicker

Yii2 widget that allow using of inputmask jquery plugin in conjunction with datepicker jquery plugin

image

aayaresko/yii2-widget-maskedinputdatepicker

Yii2 widget that allow using of inputmask jquery plugin in conjunction with datepicker jquery plugin

  • Wednesday, February 28, 2018
  • by aayaresko
  • Repository
  • 2 Watchers
  • 2 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

yii2-widget-maskedinputdatepicker

Implements inputMask jquery plugin in conjunction with DatePicker jquery plugin, (*1)

Widget InputMask in Conjunction with DatePicker (using jquery plugins).

Creates a DatePicker field with InputMask in specified via maskedInputOptions['mask'] format., (*2)

Installation

The preferred way to install extension is via composer. Check the composer.json for this extension's requirements and dependencies., (*3)

To install, either run, (*4)

$ php composer.phar require aayaresko/yii2-widget-maskedinputdatepicker "*"

or add, (*5)

"aayaresko/yii2-widget-maskedinputdatepicker": "*"

to the require section of your composer.json., (*6)

Usage

Upload all necessary components and prepare widget, (*7)

use aayaresko\date\MaskedInputDatePicker
echo MaskedInputDatePicker::widget([
    'enableMaskedInput' => true,
    'maskedInputOptions' => [
        'mask' => '99.99.9999',
        'pluginEvents' => [
            'complete' => "function(){console.log('complete');}"
        ]
    ],
    'name' => 'dp_3',
    'type' => MaskedInputDatePicker::TYPE_COMPONENT_APPEND,
    'value' => '23.09.1982',
    'pluginOptions' => [
        'autoclose'=>true,
        'format' => 'dd.M.yyyy'
    ]
]);

Important

Values of fields format, value and mask must be the same, (*8)

Configure plugin via parameters: * enableMaskedInput - whether to use InputMask or not (default false - do not use) * maskedInputOptions - inputmask jquery plugin configuration parameters, it must contain the arrays: * 'pluginOptions' - jquery plugin settings; * 'pluginEvents' - jquery plugin events; * 'mask' - input mask., (*9)

License

yii2-widget-maskedinputdatepicker is released under the BSD 3-Clause License. See the bundled LICENSE.md for details., (*10)

The Versions

28/02 2018

dev-master

9999999-dev https://github.com/aayaresko/yii2-widget-maskedinputdatepicker

Yii2 widget that allow using of inputmask jquery plugin in conjunction with datepicker jquery plugin

  Sources   Download

BSD-3-Clause BSD 3-Clause License

The Requires

 

by Avatar aayaresko

plugin extension yii2 jquery date widget datepicker input picker mask inputmask maskedinput

23/05 2015

v1.0.1-alpha

1.0.1.0-alpha https://github.com/aayaresko/yii2-widget-maskedinputdatepicker

Yii2 widget that allow using of inputmask jquery plugin in conjunction with datepicker jquery plugin

  Sources   Download

BSD 3-Clause License

The Requires

 

by Avatar aayaresko

plugin extension yii2 jquery widget inputmask maskedinput