How to use the magix.guid 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 / project / src / coms / menu / context.js View on Github external
show: function(view, e) {
        var node = e.ownerNode;
        var id = node.id || (node.id = Magix.guid('ctx'));
        id = 'ctx_' + id;
        var vf = Magix.Vframe.get(id);
        if (vf) {
            vf.invoke('show', [e], true);
        } else {
            $('body').append('<div id="' + id + '">');
            vf = view.owner.mountVframe(id, 'coms/menu/context');
            vf.invoke('update', [e], true);
            vf.invoke('show', [e], true);
        }
    }
});
</div>
github thx / magix-gallery / tmpl / mx-table / attach.js View on Github external
'@{thead.sticky}'(table) {
        let id = table.attr('id');
        if (!id) {
            table.attr('id', id = Magix.guid('table_'));
        }
        table.find('thead').css({
            width: table.width()
        });
        this.owner.mountVframe(id, '@./isticky');
    },
    '@{sync.cell.height}'() {
github thx / magix-gallery / src / mx-table / attach.js View on Github external
'@{thead.sticky}': function (table) {
        var id = table.attr('id');
        if (!id) {
            table.attr('id', id = Magix.guid('table_'));
        }
        table.find('thead').css({
            width: table.width()
        });
        this.owner.mountVframe(id, 'mx-table/isticky');
    },
    '@{sync.cell.height}': function () {
github thx / magix / project / src / app / views / demos / table-settings.js View on Github external
'showSettings': function(e) {
        var current = e.current;
        var me = this;
        FieldsSettings.show(me, {
            dock: e.params.dock,
            fields: Fields,
            checkedFields: me.$checkedFields,
            ownerNodeId: current.id || (current.id = Magix.guid('ts_')),
            picked: function(fields) {
                me.$checkedFields = fields;
                me.render();
            }
        });
    }
});
github thx / magix-project / tmpl / app / views / demos / table-settings.js View on Github external
'showSettings': function(e) {
        var current = e.current;
        var me = this;
        FieldsSettings.show(me, {
            dock: e.params.dock,
            fields: Fields,
            checkedFields: me.$checkedFields,
            ownerNodeId: current.id || (current.id = Magix.guid('ts_')),
            picked: function(fields) {
                me.$checkedFields = fields;
                me.render();
            }
        });
    }
});

magix

view manager framewrok

MIT
Latest version published 5 years ago

Package Health Score

45 / 100
Full package analysis