JavaScript library for easy access to MooD panels
Hey,
I've added our Staun&Stender JavaScript function library here:
https://github.com/sorenstaun/mood-jsextend
It works as a layer between MooD and the widget library. It uses the names of the panels to access the panel values, i.e.
value = ssDropdownValue("select-project"); //Get value from dropdown
ssHide("project-list"); //Hide an element called "Project List"
ssShow("project-list"); //Show the element.
It makes interfacing the widgets much easier than having to do all this code by hand. Feel free to contribute with patches or suggestions.
A small update was added today that allows you to automatically call a function after MooD completed an action. Example:
ssObserveNotificationBar("Save: The save completed successfully",
function () {
ssClickButton("run-sync");
});
This would click a button called "Run sync" after the save completes - without putting it on the same button as your save - or whatever else you want to do after a save completes.
Have fun!
Please sign in to leave a comment.
Comments
2 comments