-
Notifications
You must be signed in to change notification settings - Fork 192
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
[FEATURE REQUEST] Async update (AJAX/websocket) #4
Comments
Glad you're interested! I'm working on this right now, actually. Data storage support will soon be first class (integrated into the model layer w/ a defined API), and there will also be events if you want to go that route. |
Are you making automated AJAX request to a restful api ? If yes have you a definitive idea of what way you want to do that ? I've some specs to respect ^^ (but i don't want to interfere with your plans) EDIT: automated update should handle error validation messages |
Right now I've got three persistence layers: Memory, LocalStorate, and Hoodie. The "RestfulPersistenceLayer" would still need to be written. |
so basically i can write this PL and customize save, findAll, find, remove and update functions inside ? EDIT : Do you pass the entire node (key+value) to the PL ? |
Yup! {
id: "id",
collapsed: bool,
parent: "id",
children: ["id", "id", ...],
data: {
name: "Some awesome node", // <-- this is what is actually displayed
// there might be other stuff here
}
} If you want the full hierarchical data, there's a |
In the d3 tree example I just call |
hi, have you got a chance to write code to update node movement in database via ajax? |
Hello,
I would like to use it with a rest api using mongoDB. Since mongoDB is document model oriented, Treed seems to be perfect for database visualization but i also would like to be able to update the database in real time for testing purposes.
By setting good conventions (like in rails and some others framewroks), it could be totally automatised.
I can do that if your plugin is able to fire an event which can be configurable like :
afterNodeUpdate(callback(node))
function callback(node){
// Ajax request
}
Hope we can do that !
The text was updated successfully, but these errors were encountered: