Uses hideShowPassword to mask input values on element blur.
To install the Password widget with your plugin, add the following to your plugin's composer.json
file.
"require": {
"owl/password": "~1.0@dev"
}
Next, register the widget in your plugin's Plugin.php
file.
public function registerFormWidgets()
{
return [
'Owl\FormWidgets\Password\Widget' => [
'label' => 'Password',
'code' => 'owl-password'
],
];
}
To use the Password widget, simply declare a field type as owl-password
password:
label: Password
type: owl-password