We found some inconsistencies with the documentation for slider item and wanted to get it cleared up.
In /isomorphic/system/reference/SmartClient_Reference.html#attr..SliderItem.minValue the documentation says that minValue can be initialized and read.
If you look into isomorphic/system/reference/SmartClient_Reference.html#method..SliderItem.setMinValue
and hover over "minimum value" where it says "Sets the minimum value of the slider", it says minValue is writeable as well.
Which is it? Same issue with maxValue. We are assuming it is NOT writeable because when we call setMaxValue, it does not update maxValue.
In /isomorphic/system/reference/SmartClient_Reference.html#attr..SliderItem.minValue the documentation says that minValue can be initialized and read.
If you look into isomorphic/system/reference/SmartClient_Reference.html#method..SliderItem.setMinValue
and hover over "minimum value" where it says "Sets the minimum value of the slider", it says minValue is writeable as well.
Which is it? Same issue with maxValue. We are assuming it is NOT writeable because when we call setMaxValue, it does not update maxValue.
Code:
isc.DynamicForm.create({ width: 200,ID:"testDyn", fields: [ { name: "rating", title: "Rating", editorType: "slider", minValue: 1, maxValue: 5, numValues: 5, width: 200, titleOrientation: "top",ID: "sliderTest"} ], values: { rating: 4 } }); isc.Button.create({top:200,title:"setMax", click: function(){sliderTest.setMaxValue(10);isc.warn(sliderTest.maxValue);}});
Comment