1. #11
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    868
    Vote Rating
    1
    micgala is on a distinguished road

      0  

    Default


    Quote Originally Posted by gaspo100 View Post
    Thanks for the nice component.
    It work fine in my program, however, one thing I could not get working is to respond to some of the inherited events. For example Events.Change or Events.TriggerClick.
    Is your field added to a FormPanel?

  2. #12
    Sencha User
    Join Date
    Nov 2007
    Posts
    20
    Vote Rating
    0
    gaspo100 is on a distinguished road

      0  

    Default


    No, I add it into ContentPanel with AbsoluteLayout.

  3. #13
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    868
    Vote Rating
    1
    micgala is on a distinguished road

      0  

    Default


    Try wrapping then to a FormPanel.
    This is needed for Field events to work properly.

    Regards,
    Michel.

  4. #14
    Sencha User
    Join Date
    Jan 2010
    Location
    Moscow
    Posts
    27
    Vote Rating
    0
    Atum is on a distinguished road

      0  

    Default


    Thanks for the nice component!

    please tell me how to create a Template for Date and Time SpinnerField ?


    like HH:mm
    or
    DD:MM:YYYY ?

  5. #15
    Ext User
    Join Date
    Mar 2010
    Posts
    2
    Vote Rating
    0
    jgarrido is on a distinguished road

      0  

    Default


    i've found a litte ¿bug?

    When readOnly is true, spinner stills change the value of property in key events.

    Mi solution:
    1º setHideTrigger(true)
    2º inspect readOnly in onSpinnerUpClick and onSpinnerDownClick

    the result:

    Code:
        protected void onSpinnerUpClick(ComponentEvent ce) {
            if (getValue() == null || isValid() == false) {
                return;
            }
            Number newValue = getValue().doubleValue() + getStepValue().doubleValue();
            if (newValue.doubleValue() <= getMaxValue().doubleValue() && !readOnly) {
                setValue(newValue);
                fireEvent(SpinnerUpClick, ce);
            }
        }
    
        protected void onSpinnerDownClick(ComponentEvent ce) {
            if (getValue() == null || isValid() == false) {
                return;
            }
            Number newValue = getValue().doubleValue() - getStepValue().doubleValue();
            if (newValue.doubleValue() >= getMinValue().doubleValue()  && !readOnly) {
                setValue(newValue);
                fireEvent(SpinnerDownClick, ce);
            }
        }
    Suggestions:
    i think it would be more visual to a new arrow to indicate the readOnly state.
    like atum, be nice if Spinner dismiss TimeField (with his combo behavior)

    Thaks a lot for this field, i love it!!!

  6. #16
    Sencha User
    Join Date
    Jul 2011
    Posts
    17
    Vote Rating
    -1
    Ixtinkt is an unknown quantity at this point

      0  

    Default setValue spinnerfield

    setValue spinnerfield


    How to set new value of spinnerfield. method setValue do not work!

  7. #17

    Default


    Thanks man this is what i was searching for pleased to get it free Cheers