OpenSemanticLab / mediawiki-extensions-InteractiveSemanticGraph

GNU Affero General Public License v3.0
1 stars 3 forks source link

Limit the sub menu options and change properties label #28

Open moamer-dev opened 1 year ago

moamer-dev commented 1 year ago

How can I limit the number of properties shown in the right click menu or show specific options for a user? Also when change the properties label using [[Has preferred property label::example@en]] it does not change the graph view properties label

simontaurus commented 1 year ago

Sorry again for the late response. You can pass ignore_properties in the data-config attribute of the div element, see https://github.com/OpenSemanticLab/mediawiki-extensions-InteractiveSemanticGraph/blob/2e7b00dbdcdaa28b1281bf4d98e3ffbeeb153f9c/modules/ext.InteractiveSemanticGraph/InteractiveSemanticGraph.js#L57-L57

Example:

<div class="InteractiveSemanticGraph" data-config='{"properties": [...], "ignore_properties": [...]}'></div>

The display name of the properties is unfortunatly not respected