PHP code example of aayaresko / yii2-widget-maskedinputdatepicker
1. Go to this page and download the library: Download aayaresko/yii2-widget-maskedinputdatepicker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aayaresko / yii2-widget-maskedinputdatepicker example snippets
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'
]
]);
$ php composer.phar