-
Notifications
You must be signed in to change notification settings - Fork 9
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
Save functions missing? #2
Comments
Hi Jason, You can easily add buttons to toolbar using whiteboard.addTool('save', 'tools', {action: actionFunction}, 10, 'Save') You can place new buttons to the 'tools' group (where zoom-in, zoom-out and so on already placed) or create new group using whiteboard.addGroup ( id , order , label ) method. For save operation action function can look like : actionFunction = function(board){ For undo it's a bit more painful. You should add listener for collections.main.onChange event, save board data somewhere and restore it when user click undo. Regards, Среда, 8 апреля 2015, 3:36 -07:00 от jasonhayhurst notifications@github.com:
|
Hi Andrey Thanks for the reply. I have located an uncomressed later version of the whiteboard This has the icon images etc for save undo and yet it doesn’t have the code for the save file. Do you know why that was not included? Also have you any example code for saving within the function? Thanks Again, Jason From: Andrey Bogdanov <notifications@github.commailto:notifications@github.com> Hi Jason, You can easily add buttons to toolbar using whiteboard.addTool('save', 'tools', {action: actionFunction}, 10, 'Save') You can place new buttons to the 'tools' group (where zoom-in, zoom-out and so on already placed) or create new group using whiteboard.addGroup ( id , order , label ) method. For save operation action function can look like : actionFunction = function(board){ For undo it's a bit more painful. You should add listener for collections.main.onChange event, save board data somewhere and restore it when user click undo. Regards, Ñðåäà, 8 àïðåëÿ 2015, 3:36 -07:00 îò jasonhayhurst <notifications@github.commailto:notifications@github.com>:
— To view the terms under which this email is |
Wicket integration for whiteboard was made by Andun Gunawardana and these functionality (saving, undo) was added be him. Unfortunately I don't know the details of this. I made only javascript library which doesn't work directly with any external components.
|
Hi There
I would like to use this whiteboard and whilst I have it working it seems to be missing the save, undo features shown
https://github.com/wicketstuff/core/wiki/Whiteboard
Can you tell me how I can add these in?
THanks
Jason
The text was updated successfully, but these errors were encountered: