问题
I am trying to change the slider into buttonMode by using
my_slider.buttonMode = true;
but it doesn't shows handsymbol.Is there any other way to change the slider into buttonMode?.
Thanks in advance.
回答1:
i had the similar issue in one of my project. try this it will definitely work.
// cmp_slider is component instance
var mc = cmp_slider.getChildAt(1); // it is a drag button.
mc.buttonMode = true;
mc.useHandCursor = true;
回答2:
my_slider.mouseChildren = false;
my_slider.buttonMode = true;
回答3:
my_slider.mouseChildren=false is sufficient to display a hand cursor over a component.
EDIT:
my_slider.useHandCursor=true is also required
来源:https://stackoverflow.com/questions/7291765/changing-the-slider-into-buttonmode