Use minValue and maxValue