Manage back-office’s toolbars. This is a function with sub-functions.
Arguments: |
|
---|
Adds an element to the toolbar of the current js:data::$container. If no toolbar exists, creates a new one on-the-fly.
Arguments: |
|
---|
$(domContext).nosToolbar('add', element, right_side);
\\ or
$(domContext).nosToolbar(element, right_side);
\\ Add a button, right side of toolbar
$(domContext).nosToolbar('<button>Exemple</button>', true);
\\ Add a link, left side of toolbar
var $a = $('<a href="#">Exemple</a>');
$(domContext).nosToolbar($a);