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

Allow nodes/edges to have arbitrary data associated with them #74

Open
frewsxcv opened this issue Mar 30, 2016 · 2 comments
Open

Allow nodes/edges to have arbitrary data associated with them #74

frewsxcv opened this issue Mar 30, 2016 · 2 comments

Comments

@frewsxcv
Copy link
Owner

Not sure what the best API for this is...

@JakeArkinstall
Copy link

Why not just having arbitrary fields (stored as an associative array) and being able to access them through a normal getter function?

That way, the second parameter passed to the node constructor (props) can be exactly that set of arbitrary data, with the 'id' and 'color' elements being special.

@frewsxcv
Copy link
Owner Author

Why not just having arbitrary fields (stored as an associative array) and being able to access them through a normal getter function?

Sounds good

That way, the second parameter passed to the node constructor (props) can be exactly that set of arbitrary data, with the 'id' and 'color' elements being special.

I'd rather keep these separate. There are so many 'special options', I don't want to confuse anyone if they accidentally run into an option.

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