How to add an InputMask plugin?

  1. #1

    How to add an InputMask plugin?

    How to add an InputMask plugin, and a mask, in a textfield dynamically, via JS?

    I already tried:

    var pl = Ext.PluginManager.create({ ptype: 'inputmask', proxyId: campo.name, mask: result });
    
    textfield.addPlugins(pl);
    but didn't work.

    textfield is a TextField created in code behind.

    The error happens in parseNamespace function because the first argument is undefined.
  2. #2
    You need preregister plugin resources
    Ext.Net.ResourceManager.RegisterControlResources<InputMask>();
  3. #3
    Thanks, Vladimir, it works!

    Why sencha don't have a node to show inputMask properties and methods? I have other problem exactly in javascript code of inputmask!
  4. #4
    The InputMask is not a core feature of Ext JS. We have included in an extra supported feature of Ext.NET.
    Geoffrey McGill
    Founder

Similar Threads

  1. What values can I use in the InputMask Plugin?
    By KBorkiewicz in forum 2.x Help
    Replies: 2
    Last Post: Mar 26, 2013, 1:32 AM
  2. Replies: 7
    Last Post: Dec 05, 2012, 6:11 AM

Tags for this Thread

Posting Permissions