function constrain(value, minVal, maxVal) {
		if (value < minVal) {
			value = minVal;
		}

		if (value > maxVal) {
			value = maxVal;
		}

		return value;
	}
Slider control.

@-x-less Slider.less
@class tinymce.ui.Slider
@extends tinymce.ui.Widget