Hi Sebastian,

I modified the Spinner-Class and now it works:)
I don't know if its "quick and dirty" or if its ok ;)


Here are my changes:
//new Property
leadingZero :
{
        check : "Boolean",
        init : false
}


//I put this at the end of the _onmouseup : function(e) - Method
if(this.getLeadingZero()){
                var el = this._textfield.getInputElement();

                if (el) {
                        var val = el.value;
                        if(val.length == 1){
                                el.value = "0" + el.value;
                        }
                }
        }



Maybe it should be implemented not just at the end of "_onmouseup" but it works 
;)

Tobias

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Sebastian Werner
Gesendet: Freitag, 3. August 2007 09:08
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] spinner with leading 0

Hi Tobias,

I don't think that this is easily possible. Maybe you can write your own 
Range class to support such a feature. I'm not sure.

Sebastian



Tobias Koller (GERMO GmbH) schrieb:
> Hi list,
> 
>  
> 
> is it possible to attach a leading 0 if the value of my spinner is less 
> then 10?
> 
> I would like to use it to define a time (f.e. 10:03:00).
> 
>  
> 
> Thanks
> 
> Tobias
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to