Skip to content

Instantly share code, notes, and snippets.

@ggkrustev
Created February 25, 2014 16:31
Show Gist options
  • Save ggkrustev/9212441 to your computer and use it in GitHub Desktop.
Save ggkrustev/9212441 to your computer and use it in GitHub Desktop.
A simple test for creating custom mask rules in PHP
$rules = array();
$rules["~"] = new \Kendo\JavaScriptFunction('/[+-]/');
$phone_number = new \Kendo\UI\MaskedTextBox('phone_number');
$phone_number->rules($rules);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment