Author Topic: Visibility of toolbar items  (Read 2191 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Visibility of toolbar items
« on: February 11, 2020, 07:07:32 pm »
When sharing toolbar between tabs...would it be possible not to display certain items in certain grids?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: Visibility of toolbar items
« Reply #1 on: February 12, 2020, 09:49:54 am »
Following can be added to undesired items in order to hide them

Code: [Select]
style:'display:none;',

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: Visibility of toolbar items
« Reply #2 on: February 12, 2020, 12:47:05 pm »
Hmm...but I want one tab to have all items and on other remove certain item. Toolbar is shared, doesn't that affect all grids?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: Visibility of toolbar items
« Reply #3 on: February 12, 2020, 01:02:10 pm »
Yes, Sorry that's right.

You can make a deep copy of the common toolbar items and then add extra items for toolbar having more items.

Anyway any arrays and objects are not supposed to be directly shared between different grids without deep copy.