Skip to content
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

Widget.Slider adjustment props don't seem to work in the constructor #316

Open
ttoino opened this issue Feb 21, 2024 · 2 comments
Open

Widget.Slider adjustment props don't seem to work in the constructor #316

ttoino opened this issue Feb 21, 2024 · 2 comments

Comments

@ttoino
Copy link

ttoino commented Feb 21, 2024

Passing min and max to the Widget.Slider function does not seem to work. Curiously, these properties do seem to work when set after the fact.

Widget.Slider({
	// Does not work
    min: 0,
    max: 100,
	step: 5,
    value: 50,
    setup: (slider) => {
		// Works
        slider.min = 0;
        slider.max = 100;
		slider.step: 5,
    },
})
@Aylur
Copy link
Owner

Aylur commented Feb 21, 2024

what version? it should work, and it seems to work on 1.7.6 and 1.7.7

@ttoino
Copy link
Author

ttoino commented Feb 21, 2024

I'm using 1.7.6 but it still doesn't seem to work, I'll try to do some more testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants