Skip to content

DG009: Module attached twice ​

Thrown error
text
[datagrids DG009] Module `{name}` is attached twice.

This is a wiring mistake: the grid throws an Error with this message instead of half-working.

When it happens ​

A module name is attached a second time: the same factory twice (colVis() in a preset and again on the page) or two modules with the same name, such as two button.custom({ name: "approve", … }).

How to fix it ​

Attach each module once per grid. When a preset already contains a module, don't repeat it; give custom buttons distinct names, or leave name out to get an automatic one.

Released under the MIT License.