widgets\MaskedInputAsset $js

$js public property public $js = ['jquery.inputmask.bundle.js']

widgets\MaskedInput run()

run() public method Executes the widget. public string run ( )return string The result of widget execution to be outputted.

widgets\MaskedInputAsset $sourcePath

$sourcePath public property public $sourcePath = '@bower/jquery.inputmask/dist'

widgets\MaskedInputAsset $depends

$depends public property public $depends = ['yii\web\YiiAsset']

widgets\MaskedInput $_hashVar

$_hashVar protected property The hashed variable to store the pluginOptions protected string $_hashVar = null

widgets\MaskedInput init()

init() public method Initializes the widget. public void init ( )throws yii\base\InvalidConfigException if the "mask" property is not set.

widgets\MaskedInput registerClientScript()

registerClientScript() public method Registers the needed client script and options. public void registerClientScript ( )

widgets\MaskedInput initClientOptions()

initClientOptions() protected method Initializes client options protected void initClientOptions ( )

widgets\MaskedInput hashPluginOptions()

hashPluginOptions() protected method Generates a hashed variable to store the plugin clientOptions. Helps in reusing the variable for similar options passed for other widgets on the same page. The following special data attribute will also be added to the input field to allow accessing the client options via javascript: 'data-plugin-inputmask' will store the hashed variable storing the plugin options. protected void hashPluginOptions ( $view )$view yii\web\View The view instance

widgets\MaskedInput $mask

$mask public property The input mask (e.g. '99/99/9999' for date input). The following characters can be used in the mask and are predefined: a: represents an alpha character (A-Z, a-z) 9: represents a numeric character (0-9) *: represents an alphanumeric character (A-Z, a-z, 0-9) [ and ]: anything entered between the square brackets is considered optional user input. This is based on the optionalmarker setting in $clientOptions. Additional definitions can be set through the $definition