#104018

Hi,

In the Angular version, there is a property “restricted” which accepts an array of objects. Each object has a date and hours. This describes the restricted dates with hours:

For example:

const today = new Date();
const currentDate = today.getDate();
const currentYear = today.getFullYear();
const currentMonth = today.getMonth();

restricted: [
{ date: new Date(currentYear, currentMonth, currentDate), hours: [[0, 8], 20, 21, 22, 23] },
{ date: new Date(currentYear, currentMonth, currentDate – 2), hours: [[0, 3], 12, [20, 21]] },
{ date: new Date(currentYear, currentMonth, currentDate + 2), hours: [13] },
{ date: new Date(currentYear, currentMonth, currentDate – 5), hours: [[0, 3], 13, [21, 22]] },
{ date: new Date(currentYear, currentMonth, currentDate + 5), hours: [[0, 7], 13, [21, 22]] },
{ date: new Date(currentYear, currentMonth, currentDate – 10), hours: [[0, 8], 12, [20, 23]] },
{ date: new Date(currentYear, currentMonth, currentDate + 10), hours: [[0, 9], 12, [20, 23]] }
]

In the next release, the property will be available in all versions

Best Regards,
Svetoslav Borislavov

Smart UI Team
https://www.htmlelements.com/