Skip to content

Slider Range Changing #1010

Answered by yusdacra
JoshStrobl asked this question in Q&A
Aug 26, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Slider's new method takes a range and a value (https://github.com/hecrj/iced/blob/master/native/src/widget/slider.rs#L67), so you can do all of the things you said. Using an "external input" would basically be just storing it in your state and passing it via value. Same for changing the range.

As for "without having to recreate", all widgets are essentially objects that get created during view method and are consumed, so i'm not sure what you mean by that.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@manokara
Comment options

@JoshStrobl
Comment options

Answer selected by hecrj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants