diff --git a/ui/wolf.lib.html b/ui/wolf.lib.html new file mode 100644 index 0000000..2ef90be --- /dev/null +++ b/ui/wolf.lib.html @@ -0,0 +1,24 @@ + + + + + + + + \ No newline at end of file diff --git a/ui/wolf.ui.js b/ui/wolf.ui.js index f575d52..0c308ed 100644 --- a/ui/wolf.ui.js +++ b/ui/wolf.ui.js @@ -134,12 +134,34 @@ callback && callback(dialogFrame, element); } + /** + * Show a dialog asking or showing information. + * @param {*} ui UI definition + * @param {*} buttons Button definition + * @param {element} element Destination element, application element recommended + * @param {boolean} modal True to show the dialog in modal way + * @param {*} [controller] Controller for the dialogs events, if none the parent element one will be used + * @param {function} [callback] Callback when the dialog is shown + */ + function uiDialog(ui, buttons, element, modal, controller, callback) { + + } + + // ==================== + // ==================== + // == Private + // ==================== + + // ==================== + // ==================== + // == Injection + // ==================== wolf.merge({ // UI toast: toast, dialog: dialog, messageDialog: messageDialog, + uiDialog: uiDialog, }); - }); })(); \ No newline at end of file