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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi