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>();
    Vladimir Shcheglov
    Sr. Developer
  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 & CEO

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, 2:32 AM
  2. Replies: 7
    Last Post: Dec 05, 2012, 7:11 AM
  3. [0.8.2] RowSelectionPaging plugin
    By SouthDeveloper in forum User Extensions and Plugins
    Replies: 4
    Last Post: Jan 25, 2010, 5:17 PM
  4. New Plugin
    By Maia in forum User Extensions and Plugins
    Replies: 4
    Last Post: Jun 16, 2009, 1:24 AM
  5. ValidationStatus plugin
    By Vladimir in forum User Extensions and Plugins
    Replies: 3
    Last Post: Apr 03, 2009, 10:50 AM

Tags for this Thread

Posting Permissions