Closed veerareddyakkili closed 5 years ago
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.
when can we expect updated version to have the code for above requested options.
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?
Why node ID is being displayed instead of node label name.
How to display the properties of the node or relation when we click on node or relations.
On Wed, Jun 20, 2018 at 6:55 AM Popoto.js notifications@github.com wrote:
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?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Nhogs/popoto/issues/27#issuecomment-398708837, or mute the thread https://github.com/notifications/unsubscribe-auth/AI_IAXTfD3uqKxnnjAzBSN3NDFu4bLXYks5t-ioZgaJpZM4UjJ-a .
-- Thanks!! Akkili.
You have two possibilities to customize what to display in a node:
You can define which attribute to use as display attribute: https://github.com/Nhogs/popoto/wiki/Node-configuration#display-attribute
You can customize the getTextValue function and build the text to display, you have access to the full node data in this case: https://github.com/Nhogs/popoto/wiki/Node-configuration#get-text-value
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.