Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Remove Relations based on selection #27

Closed
veerareddyakkili opened this issue Jun 11, 2018 · 5 comments
Closed

How to Remove Relations based on selection #27

veerareddyakkili opened this issue Jun 11, 2018 · 5 comments
Assignees

Comments

@veerareddyakkili
Copy link

If i click on Directed on person Node, it should display and when i click on Produced , Produced should be displayed and Directed should be hidden. again if i select on Produced , it should not display twice. How to achieve this.

@Popotojs
Copy link
Collaborator

This behaviour cannot be done without some changes in code.

This is not a common behaviour because the graph query builder allows multiple relations including relations of the same type to match the graph data.
This would express and "AND" operation between values (for example, match Person Directed "The Matrix" and Produced "The Matrix" and Produced "The Matrix Reloaded")

One possible way to achieved this would be to add an event in graph when relation is clicked or added and remove others relations.

I created #28 to add this event.

Another optimization could be to remove or disable the relations when they have 0 values with current selection.

@Popotojs Popotojs self-assigned this Jun 12, 2018
@veerareddyakkili
Copy link
Author

when can we expect updated version to have the code for above requested options.

@Popotojs Popotojs mentioned this issue Jun 20, 2018
@Popotojs
Copy link
Collaborator

I added the event in version 2.0.4 with an example on how to use it here https://github.com/Nhogs/popoto-examples/tree/master/add-relation-event would this fit your needs?

@veerareddyakkili
Copy link
Author

veerareddyakkili commented Jun 20, 2018 via email

@Popotojs
Copy link
Collaborator

Popotojs commented Feb 27, 2019

You have two possibilities to customize what to display in a node:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants