Cool!! ----- Original Message ----- From: Richard D. Worth To: [email protected] Sent: Saturday, June 06, 2009 7:27 AM Subject: [jquery-ui] Re: Tick Marks for Slider
There's no built-in support for slider ticks (yet). But making them yourself isn't actually that bad, and they're quite flexible, even if the slider is resized. Just decide how many you want, create a loop and append the ticks, and set the css left for each one in % from 0 to 100. So if you have 9 ticks, they'll have a css left of 10%, 20%, 30%, etc. Here's an example: http://jsbin.com/iwime Notice I used the 'ui-widget-content' class on each tick div, so they're ThemeRoller-ready. You can play with this on that example page with the included themeswitcher. I'm interested in getting this baked in at some point. You can create a feature request ticket here, if one doesn't already exist: http://dev.jqueryui.com/newticket (note: requires registration) so we don't forget. And if you have any input on design, implementation, API, etc. for this feature, or any others, we welcome your feedback on the slider dev and planning wiki page: http://wiki.jqueryui.com/Slider - Richard On Thu, Jun 4, 2009 at 10:30 AM, KaisRar <[email protected]> wrote: Hello all, javascript/jquery noob here. Is there a simple way to put tic marks onto the jquery slider, so that it is similar to the YUI one? (link: http://developer.yahoo.com/yui/examples/slider/slider-ticks.html) I would prefer not to use two libraries on this page, and jQuery is perfect for everything else I am doing. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
