data – Can you have files and folders in the same table?


I’m creating a multi-select data table, and we have a structure where we have files and folders. In this page, we need to be able to SELECT the files or SELECT the folders in order to perform an action. I’ve added a screenshot of what I mean. As you can see, there are single files and then at the bottom there is an expand collapse button for the folder.

enter image description here

The user should be able to expand the folder to see the files and make a selection. Because this isn’t a traditional file/folder, I was struggling to find examples. If anyone has ideas/references, please let me know! Thank you.