PDA

View Full Version : Ext.ux.form.SliderField



tcl_java
2 Dec 2009, 7:05 AM
Demo (http://www.5cent.net/demo/slider-field)
Download (http://www.5cent.net/lib)
:)

Animal
2 Dec 2009, 7:28 AM
Shouldn't it create a hidden input to carry its value instead of an Ext.form.Field?

tcl_java
2 Dec 2009, 7:54 AM
Shouldn't it create a hidden input to carry its value instead of an Ext.form.Field?

Because I want it has two ways to input value, slide and type.

Sorry for my bad English :)!

Animal
2 Dec 2009, 8:23 AM
What if someone doesn't want to type?

If should be configurable.

tcl_java
2 Dec 2009, 9:30 AM
What if someone doesn't want to type?

If should be configurable.

Add displayInput config :)

Animal
3 Dec 2009, 12:32 AM
OK, that's cool. But I wouldn't go to the expense of creating an actual new Ext.form.Field. Just create an actual <input type="hidden"> inside the Slider's wrap element.

Animal
3 Dec 2009, 12:35 AM
What about the name of the field?

It must be able to participate in form submissions (Values are grabbed directly from the DOM), so any associated input field (hidden or not) must get the name given to the SliderField

Animal
3 Dec 2009, 12:37 AM
That will break layouts because it renders the Ext.form.Field.

tcl_java
7 Dec 2009, 9:44 AM
What about the name of the field?

It must be able to participate in form submissions (Values are grabbed directly from the DOM), so any associated input field (hidden or not) must get the name given to the SliderField

I think its name is SliderField.


That will break layouts because it renders the Ext.form.Field.
Can you give me an example?