How to use the magix.mix function in magix

To help you get started, we’ve selected a few magix examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thx / magix-gallery / build / src / mx-dialog / index.js View on Github external
alert: function (title, content, enterCallback, dialogOptions) {
        dialogOptions = dialogOptions || {};
        var hasBtns = ((dialogOptions.btns + '') !== 'false');
        return this.mxDialog('mx-dialog/alert', {
            title: title,
            content: content,
            enterCallback: enterCallback,
            hasBtns: hasBtns
        }, Magix.mix({
            width: 320,
            closable: false,
            mask: false
        }, dialogOptions));
    },
    /**
github thx / magix-gallery / dist / src / mx-dialog / index.js View on Github external
alert: function (title, content, enterCallback, dialogOptions) {
        dialogOptions = dialogOptions || {};
        var hasBtns = ((dialogOptions.btns + '') !== 'false');
        return this.mxDialog('mx-dialog/alert', {
            title: title,
            content: content,
            enterCallback: enterCallback,
            hasBtns: hasBtns
        }, Magix.mix({
            width: 320,
            emptyClosable: true,
            closable: false,
            mask: false
        }, dialogOptions));
    },
    /**
github thx / magix-gallery / tmpl / mx-dialog / index.js View on Github external
alert(title, content, enterCallback, dialogOptions) {
            dialogOptions = dialogOptions || {};
            let hasBtns = ((dialogOptions.btns + '') !== 'false');
            return this.mxDialog('@./alert', {
                title,
                content,
                enterCallback,
                hasBtns
            }, Magix.mix({
                width: 320,
                emptyClosable: true, //点击空白区域是否允许关闭浮层
                closable: false,
                mask: false
            }, dialogOptions))
        },
github thx / magix-gallery / build / src / mx-dialog / index.js View on Github external
confirm: function (viewOptions, dialogOptions) {
        return this.mxDialog('mx-dialog/confirm', viewOptions, Magix.mix({
            width: 320,
            closable: false,
            mask: false
        }, (dialogOptions || {})));
    },
    /**
github thx / magix-gallery / dist / src / mx-dialog / index.js View on Github external
confirm: function (viewOptions, dialogOptions) {
        return this.mxDialog('mx-dialog/confirm', viewOptions, Magix.mix({
            width: 320,
            emptyClosable: true,
            closable: false,
            mask: false
        }, (dialogOptions || {})));
    },
    /**

magix

view manager framewrok

MIT
Latest version published 4 years ago

Package Health Score

45 / 100
Full package analysis