Open JosefSommerauer opened 1 week ago
I try do get this javascript snipped to work. It shows no error but i also dont see a checkbox element. only a empty column... js code
new gridjs.Grid({ columns: [ { id: 'myCheckbox', name: 'Select', plugin: { // install the RowSelection plugin component: gridjs.plugins.selection.RowSelection } }, 'Email', ], data: [ ["John", "john@example.com" ], ["Mark", "mark@gmail.com" ], ["Eoin", "eoin@gmail.com" ], ["Sarah", "sarahcdd@gmail.com" ], ["Afshin", "afshin@mail.com" ], ], sort: true }).render(document.getElementById("wrapper"));
html code
<!DOCTYPE html> <html lang="en"> <head> <link href="https://unpkg.com/gridjs/dist/theme/mermaid.min.css" rel="stylesheet" /> </head> <body> <div id="wrapper"></div> <script src="https://unpkg.com/gridjs/dist/gridjs.umd.js"></script> <script src="https://unpkg.com/gridjs/plugins/selection/dist/selection.umd.js"></script> <script src="index.js"></script> </body> </html> <script> </script>
Duplicate of #1432 ?
I try do get this javascript snipped to work. It shows no error but i also dont see a checkbox element. only a empty column... js code
html code