Hi everybody!
I have a resource list and button. I want the collapsed property of each item to be toggle when I press the button. like this;
const calendarSetCollapsed = (data, type) => {
data.forEach((item) => {
item.collapsed = type;
if (item.children && item.children.length > 0) {
calendarSetCollapsed(item.children, type);
}
});
return data;
};
when i press the button collapsed properties are changed but not changed in the calendar.
thanks for answer!