Skip to content

Limit the sub menu options and change properties label #28

Open

Description

@moamer-dev

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

Activity

  1. changed the title [-]Limit the menu option[/-] [+]Limit the sub menu option[/+] on Jan 25, 2023
  2. changed the title [-]Limit the sub menu option[/-] [+]Limit the sub menu options and change properties label[/+] on Jan 25, 2023
  3. simontaurus commented on Sep 14, 2023

    @simontaurus
    Contributor

    Sorry again for the late response. You can pass ignore_properties in the data-config attribute of the div element, see

    this.config.properties = this.config.properties.filter((el) => { return !this.config.ignore_properties.includes(el); }); //remove ignored properties

    Example:

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

    The display name of the properties is unfortunatly not respected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions