Results 1 to 2 of 2

Thread: Custom TimeField Spinner

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    9
    Vote Rating
    0
      0  

    Default Custom TimeField Spinner

    Hi,

    Please note that we have created a custom timer control with the help of Spinner tag.
    This will get updated with the onSpinUp & onSpinDown behaviour
    TimerImage.png
    Current implementation supports the 12 hour format ONLY.

    Problem:
    We need to support Browser Locales thus the format gets changed for different locales:-
    Eg:- for en_US -- Time format is 12 hour 10:23 PM
    for en_UK or en_GB -- Time format is 24 hour 22:23

    Existing extJS timePicker field behaves accordingly, however it doesn't convey the timer field as user is getting confused by its look and feel of a dropdown.
    Existing extJS TimePicker control-
    TimerImage.png

    Questions?
    1) Is it possible to update the existing extJS timepicker field to look like the spinner and behave accordingly.
    2) Is it possible to update the custom timer filed to support localization?

    Please suggest the approach that can be taken next?

    Thanks in advance!!

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1391
      0  

    Default

    The time field in 4.1.0 extends from Combobox so it won't be able to have the up/down triggers.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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
  •