PDA

View Full Version : tick marks and labels on ExtJS 4 slider



glafrance
23 Jul 2013, 8:52 AM
I'm wondering if I can get tick marks and labels on an ExtJS 4 slider using configs and properties of the slider itself, or do I need to add additional elements, such as Ext.Label and place them near the slider?

44997

glafrance
23 Jul 2013, 11:43 AM
Someone told me you have to add the labels yourself, and this is not possible with the slider component itself.

But how about adding the tick marks? Is this something that is possible with the slider component itself, or do I need to draw lines somehow apart from the slider component itself?

slemmon
25 Jul 2013, 9:44 AM
The slider component itself doesn't have a config for adding ticks / labels. You'll need to set up the labels / ticks yourself.

You might take a look at this examples page to see how ticks are added to a slider component using an image and CSS:
http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/slider/slider.html