-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uniquely styling multiple handles #64
Comments
Perhaps adding an optional second |
Hi @tonyketcham ... I believe I've already got this enabled... let me see if I can whip up a quick REPL :) |
https://svelte.dev/repl/eb8df23e0eba47c6add9527eb5976f99?version=3.46.4 There's also a fairly cool example on Codepen of it in use as a plain JS component which has custom handle formatting, too; (p.s here's the commit where |
@simeydotme this is fantastic - thank you for your amazing work; this is the best slider component I've ever come across in any framework |
Hi, I started writing my answer and thought I'd wait for after dinner so I can follow up, but this is way better, I only had a quick and dirty solution with basically this in RangeSlider.svelte: export let prefixes = []; {#if prefixes[index]}<span class="rangeFloat-prefix">{prefixes[index]}</span>{/if} I actually wanted to use the formatter first, but I use the docs website not the readme and only 'v' is on there, so I missed it. I'm also not used to the :global modifier and forgot about it, so my styling was limited. Thank you Simon for the answer and, by the way, I kinda rushed my PR #63 because it had already been 2 weeks since I made the logo for fun and my repo was sitting there unused, but if you're thinking about making this more framework-agnostic I'd be happy to change things around 😃 |
So sorry, apologies, I've really neglected the Docs page and that's totally my bad!
wow, high praise, thanks!
I take that kindly and will revert you on #63 as I get time... I didn't instantly merge because I was also taking in to consideration the component's angle (I like the fact it's agnostic, but I also like the extra value it brings for Svelte apps... I'm wondering if I will split into a Svelte-only repo, and another repo for agnostic) ... apologies for the delay. |
I was playing around in illustrator making logos for tools I like, so I wouldn't want you to feel obliged to use it, no worries at all 🙂 I probably wouldn't get to use the vanilla component but I looked around earlier and it seems there aren't that many standalone slider components, and this is by far the most advanced one. It's unfortunate the name is that descriptive, it could use being shortened to a simple "svelte slider", or, seeing the work you put in the vanilla version, something like "PipSlide js", there's no real way to tell how many people would be impacted, but the earlier the better I'd say 😅 |
We're using this component in p5-svelte's docs to change
x
andy
dimensions of a sketch and would like to be able to independently label each based on their index respective to the passed-in values array:So that we could have two thumbs with the format:
x: ...
,y: ...
The text was updated successfully, but these errors were encountered: