Results 1 to 9 of 9

Thread: How fix uppercase in all my textfields

  1. #1
    Sencha User
    Join Date
    Apr 2015
    Posts
    18
    Answers
    1
    Vote Rating
    0
      0  

    Default How fix uppercase in all my textfields

    Hey guys, How and what css attribute must override to set uppercase in all my textfields??

    I have a file all.scss

    i tried using attribute baseCls: .x-component-value: {text-transform: uppercase} but not work =/

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506
    Vote Rating
    296
      0  

    Default

    Are you asking how to change the user's input in the textfield to uppercase as they type it (or perhaps once they are done)? If so, you'd have to override the textfield to listen to the key input.

  3. #3
    Sencha User
    Join Date
    Apr 2015
    Posts
    18
    Answers
    1
    Vote Rating
    0
      0  

    Default

    change the user's input in the textfield to uppercase.

  4. #4
    Sencha User
    Join Date
    Apr 2015
    Posts
    18
    Answers
    1
    Vote Rating
    0
      0  

    Default

    please??

  5. #5
    Sencha User
    Join Date
    Apr 2013
    Posts
    910
    Answers
    105
    Vote Rating
    187
      0  

    Default

    As Gary told you, you can listen to keyup event and, if user types a letter, change textfield value. Also, you could simply handle field change event and, if textfield value is not already in all caps, change it.

  6. #6
    Sencha User
    Join Date
    Apr 2015
    Posts
    18
    Answers
    1
    Vote Rating
    0
      0  

    Default

    i have 100 textfields, I do not want to customize each one, I want to overwrite any default method for all inputs or values become uppercase

  7. #7
    Sencha User
    Join Date
    Apr 2013
    Posts
    910
    Answers
    105
    Vote Rating
    187
      0  

    Default

    Create a custom textfield which extends normal textfield or write a textfield plugin.

  8. #8
    Sencha User
    Join Date
    Apr 2015
    Posts
    18
    Answers
    1
    Vote Rating
    0
      0  

    Default

    for button I could leave all titles by default capitalized, using
    .x-btn-text {
    text-transform: uppercase;
    }

  9. #9
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506
    Vote Rating
    296
      0  

    Default

    It works to set a fieldStyle on the textfield, but while the input appearance is all caps, I'm pretty sure it will be sent as typed (mixed case) to the server.
    https://fiddle.sencha.com/#fiddle/1hl4

Similar Threads

  1. TO UPPERCASE
    By xlite in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 19 Jun 2010, 12:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •