Author Topic: Tree grid: collapse icon for empty folders  (Read 2261 times)

Autoflow

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 21
    • View Profile
Tree grid: collapse icon for empty folders
« on: October 31, 2019, 09:18:01 pm »
Just stumbled about empty folders in tree grid.
Would like to indicate empty folders as those without the possibility to collapse them.

What do you think about adding a third option to treeModel.iconCollapse like this:

treeModel.iconCollapse = [First string corresponds to open state icon, 2nd string corresponds to close state icon, 3rd string for folders without children and thus not collapsable].



paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Tree grid: collapse icon for empty folders
« Reply #1 on: November 01, 2019, 03:10:30 pm »
treeModel.iconCollapse or treeModel.iconFolder third string option could only be used to visually represent an empty folder.

As far as the functionality to prevent collapse / expand empty folders is concerned, beforeTreeExpand event can be used.

https://paramquery.com/pro/api#event-beforeTreeExpand

Autoflow

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Tree grid: collapse icon for empty folders
« Reply #2 on: November 01, 2019, 03:29:24 pm »
Quote
treeModel.iconCollapse or treeModel.iconFolder third string option could only be used to visually represent an empty folder.

Would be glad to see this implemented.
Can i count on it in some of the next releases?