OK thanks. Another spinner limitation : no null value allowed. I'm not waiting for null string to be shown, but like other field, blank field should be allowed if user doesn't interact with spinner otherwise, 0 will be the value instead of NULL in the database. Finally, because of all that limitations, I found the Spinner not so powerful for business forms because it acts like mandatory field.
I would propose the following as wanted enhancement for Spinner widget if it is shared by other qooxdoo dev, otherwise, I'll do it in a way or another on my own code but I think there is real added value to add that enhancements at qooxdoo level : 1. default behavior without any user interaction, like all other field, blank with corresponding js value : null. 2. a way to specify the value of the Spinner in case the entered value if > max or < min (so it is 2 values to optionally specify) 3. less important : a way to have a spinner without min and max, just like a field with arrow. On Apr 29, 2010, at 16:35 , Alexander Steitz wrote: > Hi Jean-Baptiste, > > On Thursday April 29 2010 10:48:28 Jean-Baptiste BRIAUD -- Novlog wrote: >> 1. Is it possible to have a spinner without min and max ? > I guess not. The spinner is heavily relying on these two properties that it > would be easier to implement a custom widget, than to customize the spinner > widget for this case. > >> I noticed Spinner is perfect to store numbers since it is not mandatory to >> use the arrow. The user can entere the value by hand but the arrows show >> the user "this field is a number". Unfortunatly, even if I use the default >> constructor that doesn't have min and max, there are min and max. Max is >> set by default to 100 but I would love not to have max. > Yes, 100 is the (sensible) default value for both properties. > >> This mean that any big or small number would be OK on such Spinner. >> Is it possible with actual Spinner ? >> If no, any ideas to get that behavior ? > I guess the answer is that you need to implement an own widget. > >> 2. When using the spinner "classically" with a min and a max, is it >> possible to change or parameterized the behavior when the value entered is >> over the max ? Example : >> A spinner is set with min 0 and max 100. >> The user entered by hand 999 => the spinner is set to 100. >> I'd like to set that value somewhere. >> So, for example, when the user entered 999, the spinner would contain 0 >> instead of 100. > I guess you have to subclass the widget and change the behaviour yourself. > > cheers, > Alex > > ------------------------------------------------------------------------------ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
