jwood
October 26, 2020, 2:05am
#1
Good day all.
I have sections used to display items which need attention. When there are no items I would like to hide or remove these sections.
For example, remove the Verify section if it is empty:
Parent
-Manager
–John
–Sam
–Mike
-Developer
–Sara
–Lisa
–Tom
-Verify
Any suggestions?
Thank you.
Siarhei
November 10, 2020, 5:07pm
#2
Hello @jwood ,
Technically it could be done in a similar way, that is described in the following topic:
Is there any way to show only the sections with events on the display date?
For example I have this events:
{ start_date: "2015-04-20 2:20", end_date: "2015-04-20 13:00", text:"Event 1", section: 1},
{ start_date: "2015-04-21 11:40", end_date: "2015-04-21 12:20", text:"Event 2", section: 2},
{ start_date: "2015-04-23 15:00", end_date: "2015-04-23 15:40", text:"Event 3" section: 3},
{ start_date: "2015-04-24 09:00", end_date: "2015-04-24 09:40", text:"Event 4", section: 4},
{ start_date: "…
The main difference is that you will have to create some additional logic, which will work with nested sections.
Unfortunately, I don’t have any ready demo.