How to rename the Groups in custom cockpit

Hi Mohan,

as already described to you in How to disable Copy and Paste dashboard option to Guest user - #3 by Tristan_Bastian and How to remove or disable the components under left drawer(side menu) in custom cockpit application - #4 by Tristan_Bastian you would need to adjust the items$ observable of the corresponding state service (in this case the NavigatorService Web SDK documentation) to emit the values as you need them.

Instead of filtering the items like described in the above linked samples, you can also search for the item with the label Groups and adjust it’s label to whatever you want.

In case you already performed the modifications that I described to you in How to remove or disable the components under left drawer(side menu) in custom cockpit application - #8 by Tristan_Bastian you could also just adjust the CustomAssetNode class further and override it’s setLabel method (Web SDK documentation) like so:

class CustomAssetNode extends AssetNode {

  [...]

  setLabel() {
    if (this.root) {
      this.label = 'My custom groups label';
    } else {
      super.setLabel();
    }
  }
}

Regarding the Your tooltip tooltip, I was unable to reproduce this. Please raise a support ticket for this with detailed instructions on how to reproduce this and make sure that this is also reproduce able in the stock cockpit app without any of your customizations.

Regards,
Tristan

1 Like