1. #1
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Question How to add pattern to input?

    How to add pattern to input?


    Hi,
    I would like to add:
    pattern="[0-9]*"

    To my input fields (text/searchfields) How can I do that in the Architect?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,399
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Type "pattern: '[0-9]*' " in the quick set/filter and click add?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default


    Quote Originally Posted by aconran View Post
    Type "pattern: '[0-9]*' " in the quick set/filter and click add?
    Hi,
    Have done that. I can add the line in "Designer" no problem, but it will not be added in the html?

  4. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    You could use numberfield or

    if you need to use textfield you can read this thread
    http://www.sencha.com/forum/showthre...-Android/page2
    Bharat Nagwani
    Sencha Designer Development Team

  5. #5
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default


    Quote Originally Posted by bharatn View Post
    You could use numberfield or

    if you need to use textfield you can read this thread
    http://www.sencha.com/forum/showthre...-Android/page2
    So its not possible to add a pattern directly in "Designer" ? I really need the pattern, numberfield is no good in my situation.

  6. #6
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    If you mean via a config, not currently as the underlying framework doesnt support it either. I can check with the Touch team and let you know about the plans.
    Bharat Nagwani
    Sencha Designer Development Team

  7. #7
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default


    Quote Originally Posted by bharatn View Post
    If you mean via a config, not currently as the underlying framework doesnt support it either. I can check with the Touch team and let you know about the plans.
    Awesome, thanks!

Thread Participants: 2