EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: gordis gmbh on June 27, 2018, 02:45:06 AM



Title: set timespinner min and max value within datetimebox
Post by: gordis gmbh on June 27, 2018, 02:45:06 AM
Hello,

when in a datetimebox all selected dates must be between 8:30 and 17:30. How can be min and max values of timespinner set within this datetimebox component.

thanks!


Title: Re: set timespinner min and max value within datetimebox
Post by: jarry on June 27, 2018, 07:42:57 AM
Call 'spinner' method to get the timespinner object and then set the 'min' and 'max' properties.
Code:
$('#dt').datetimebox('spinner').timespinner({
min: '08:30',
max: '17:30'
})