How to use gridmanager - 3 common examples

To help you get started, we’ve selected a few gridmanager 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 baukh789 / GridManager-Vue / src / js / gridmanager-vue.js View on Github external
Object.assign(dataMap, _parent.$data);

                    // create new vue
                    new Vue({
                        parent: _parent,
                        el: el,
                        data: () => dataMap,
                        methods: methodsMap,
                        template: el.outerHTML
                    });
                });
                resolve();
            });
        };

        new $gridManager(this.$el, this.option, query => {
            typeof(this.callback) === 'function' && this.callback(query);

            // 当前this指向的是 gridmanager
            // _parent 指向的是调用 gridmanager 的 components
            // GM.setScope 中需要传入的是当前实例化的table和所在域。而这域应该是_parent
            $gridManager.setScope(this.$el, _parent);
        });
    },
github baukh789 / GridManager-Vue / src / js / gridmanager-vue.js View on Github external
destroyed() {
        const gridManagerName = this.option.gridManagerName;
        // 清除右键菜单
        const menuDomList = document.querySelectorAll(`.grid-menu[grid-master="${gridManagerName}"]`);
        [].forEach.call(menuDomList, menuDom => {
            menuDom.parentNode.removeChild(menuDom);
        });

        // 销毁实例
        $gridManager.destroy(gridManagerName);
    }
};
github baukh789 / GridManager-Vue / src / js / gridmanager-vue.js View on Github external
new $gridManager(this.$el, this.option, query => {
            typeof(this.callback) === 'function' && this.callback(query);

            // 当前this指向的是 gridmanager
            // _parent 指向的是调用 gridmanager 的 components
            // GM.setScope 中需要传入的是当前实例化的table和所在域。而这域应该是_parent
            $gridManager.setScope(this.$el, _parent);
        });
    },

gridmanager

表格管理插件

MIT
Latest version published 3 months ago

Package Health Score

59 / 100
Full package analysis