Hi there,
We are trying to set up an rating-page with mutliple "rating-groups".
Since there is no star-rating item (see here and here) we have to use multiple sliders.
By investigating the Slider and the usage in DynamicForms we have also discovered the SliderItem.
It seems to be there, but not fully functional.
1. The height of the sliderItem is not set correctly
We have to additionally set the height of the slider in sliderItemSlider.
The component should set this by default. Also the editorType is not mentioned in the documentation.
Removing the editorType results into a textfield with a slider, which is not supposed to be there
2. The changed event of the FormItem is not firing when the value of the slider changes.
This is reproducable in the latest nightly and all browsers.
In addition I would like to add some recommendations.
a) If you are using a SliderItem the DynamicForm gets very high, because of the height of the slider. It would be nice if the value would be displayed at the right of the slider, not above the thumb. Think about multiple (>10 SliderItems) on a page, so you have a lot of scrolling.
Instead if the selected value would be on the right (example shown below):
b) It would be nice if there would be an option to format the selected value. Something like formatEditorValue, so there would be a primitive way to format the shown value, or use a own written value-mapping to a word in an js-function.
Best Regards
We are trying to set up an rating-page with mutliple "rating-groups".
Since there is no star-rating item (see here and here) we have to use multiple sliders.
By investigating the Slider and the usage in DynamicForms we have also discovered the SliderItem.
It seems to be there, but not fully functional.
1. The height of the sliderItem is not set correctly
We have to additionally set the height of the slider in sliderItemSlider.
The component should set this by default. Also the editorType is not mentioned in the documentation.
Removing the editorType results into a textfield with a slider, which is not supposed to be there
2. The changed event of the FormItem is not firing when the value of the slider changes.
This is reproducable in the latest nightly and all browsers.
Code:
isc.DynamicForm.create({ "ID" : "sliderForm", "numCols" : 2, "colWidths" : [150, 220], "fields" : [{ "ID" : "sliderItem", "changed" : function (p1, p2, p3) { alert("Slider was changed"); }, "name" : "sliderItem", "title" : "Slider", "width" : 200, "editorType" : "SliderItem", slider : isc.Slider.create({ "ID" : "sliderItemSlider", "maxValue" : 10, "minValue" : 1, "numValues" : 10, "roundPrecision" : 1, "roundValues" : false, "showRange" : true, "showTitle" : false, "showValue" : true, "vertical" : false }) } ], })
a) If you are using a SliderItem the DynamicForm gets very high, because of the height of the slider. It would be nice if the value would be displayed at the right of the slider, not above the thumb. Think about multiple (>10 SliderItems) on a page, so you have a lot of scrolling.
Instead if the selected value would be on the right (example shown below):
b) It would be nice if there would be an option to format the selected value. Something like formatEditorValue, so there would be a primitive way to format the shown value, or use a own written value-mapping to a word in an js-function.
Best Regards
Comment