Hello everyone,
I am trying to use a tag browse tree in perspective, I have to only show the all the tag paths in perspective Tag Browse Tree component. Does anyone know how to hide all tags property in perspective Tag Browse Tree component?
I am trying to use a tag browse tree in perspective, I have to only show the all the tag paths in perspective Tag Browse Tree component. Does anyone know how to hide all tags property in perspective Tag Browse Tree component?
Look at this : post
I did it by doing this...
.terminal-node:has(.tree-item:not([data-label=""])) {
display: none;
}
Hi, @Jan_Nguyen
where I should implement this script.
.terminal-node:has(.tree-item:not([data-label=""])) {
display: none;
}
In advanced stylesheet, look at this link.
Right click in the component. Open up scripts. Go to filterBrowseNode.
This is called for each tag before it is displayed in the tag browse tree. Return False to exclude the tag from displayed results.
I belive you can do something like this:
def filterBrowseNode(self, node):
node_type = node.getObjectType().toString().lower()
# To exclude tag properties and UDT properties
return node_type not in ["property", "node"]
# You could also do it the other way
# return node_type in ["atomictag", "folder", "udtinstance"]
PS: I know is an old topic but could help someone