widgets\MaskedInput $definitions

$definitions public property

Custom mask definitions to use. Should be configured as maskSymbol => settings, where

  • maskSymbol is a string, containing a character to identify your mask definition and
  • settings is an array, consisting of the following entries:
    • validator: string, a JS regular expression or a JS function.
    • cardinality: int, specifies how many characters are represented and validated for the definition.
    • prevalidator: array, validate the characters before the definition cardinality is reached.
    • definitionSymbol: string, allows shifting values from other definitions, with this definitionSymbol.
public array $definitions = null
doc_Yii
2016-10-30 17:18:33
Comments
Leave a Comment

Please login to continue.