SettingsModelInteger minimum value

Hi everyone,

I want to set a minimum value for my NodeDialog using SettingsModelInteger Class but I can only set the default value to “0”. I want to prevent the users from setting the value below “0”. How will I make the minimum value to “0”.

Thank you in advance.

Br,
Gambit

Hi @Gambit,

You can use SettingsModelIntegerBounded instead, which allows to specify upper and lower bounds (just set the upper bound to Integer.MAX_VALUE if you do not care about that).

Marcel

3 Likes

Hi @MarcelW,

It worked! Thank you so much!

Br,
Gambit

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.