hi,
how do i get the label from the selected value in a slider?
must be something like “$$(“sliRadio”).config.options[0].label” but with the selected option that i do not know how to get it
thanks and greetings!
hi,
how do i get the label from the selected value in a slider?
must be something like “$$(“sliRadio”).config.options[0].label” but with the selected option that i do not know how to get it
thanks and greetings!
Hi,
$$(“sliRadio”).getValue() allows to get get selected value. And you can find the option where value property is equal this value:
var found = false,
label = "",
options = $$("sliRadio").config.options,
value = $$("sliRadio").getValue();
for(var i=0; i < options.length && !found; i++){
if(options[i].value == value){
label = options[i].label;
found = true;
}
}