dev-master
9999999-devYii2 widgets for form fields
MIT
The Requires
by mrs2000
extension yii2 widget
1.0.1
1.0.1.0Yii2 widgets for form fields
MIT
The Requires
by mrs2000
extension yii2 widget
Yii2 widgets for form fields
Yii2 widgets for form fields, (*2)
Input widgets: - PasswordRevealWidget - PhoneInputWidget - MaskedPhoneInputWidget, (*3)
Validators: - PhoneValidator, (*4)
The preferred way to install this extension is through composer., (*5)
Either run, (*6)
php composer.phar require --prefer-dist mrssofy/yii2-form-widgets "~2.0"
or add, (*7)
"mrssofy/yii2-form-widgets": "~2.0"
to the require section of your composer.json
file., (*8)
Once the extension is installed, simply use it in your code by:, (*9)
$form->field($order, 'name')->widget(NameInputWidget::class); $form->field($order, 'phone')->widget(PhoneInputWidget::class); $form->field($order, 'password')->widget(PasswordRevealWidget::class);
public function rules() { return [ [['phone'], 'required'], [['phone'], PhoneValidator::class, 'returnLenght' => 10], ... ]; }
Yii2 widgets for form fields
MIT
extension yii2 widget
Yii2 widgets for form fields
MIT
extension yii2 widget