Gtk.SpinButton.prototype.set_range
function set_range(min:Number, max:Number):void { // Gjs wrapper for gtk_spin_button_set_range() }
Sets the minimum and maximum allowable values for spin_button.
If the current value is outside this range, it will be adjusted to fit within the range, otherwise it will remain unchanged.
- min
minimum allowable value
- max
maximum allowable value