1. #1
    Sencha User
    Join Date
    Oct 2008
    Posts
    25
    Vote Rating
    1
    pablitobs is on a distinguished road

      1  

    Default Textfield Mask (Phone format (999) 999-9999)

    Textfield Mask (Phone format (999) 999-9999)


    Steps:
    1. Download plugin from https://gist.github.com/loiane/909119
    2. Add the JavaScript resource link [Ux.InputTextMask.js] to your project [how to..].
    3. On the properties panel of your textfield click the "+" at the "Process Config" option.
    4 Add the folowing code:
    Code:
    config.plugins = [new Ux.InputTextMask('(999) 999-9999')];
    return config;
    Note: as "plugins" is part of the configuration of the TextField and the Architech has no support for this or other configurations, this is the best way to access those properties.

    I hope this helps someone out there.

  2. #2
    Sencha User
    Join Date
    Aug 2013
    Posts
    5
    Vote Rating
    2
    Ru5 is on a distinguished road

      0  

    Default


    Thanks for plugin.

  3. #3
    Sencha User
    Join Date
    Aug 2013
    Posts
    5
    Vote Rating
    2
    Ru5 is on a distinguished road

      0  

    Default Thanks

    Thanks


    I propose to clear field on focus lose in case of empty value:
    removeValueWhenInvalid : function() { if (this.clearWhenInvalid && this.inputTextElement.value.indexOf('_') > -1) { this.inputTextElement.value = ''; } if (this.inputTextElement.value == '' || this.inputTextElement.value == this.viewMask) { this.field.reset(); } }

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar