Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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>
'@{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}'() {
'@{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 () {
'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();
}
});
}
});
'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();
}
});
}
});