Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RowSelection Plugin Example does not show checkboxes in Table #1482

Open
JosefSommerauer opened this issue Oct 18, 2024 · 1 comment
Open

Comments

@JosefSommerauer
Copy link

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
Screenshot 2024-10-18 213157

new gridjs.Grid({
    columns: [
      {
        id: 'myCheckbox',
        name: 'Select',
        plugin: {
          // install the RowSelection plugin
          component: gridjs.plugins.selection.RowSelection
        }
      },
      'Email',
  ],
  data: [
    ["John", "[email protected]"     ],
    ["Mark", "[email protected]"       ],
    ["Eoin", "[email protected]"       ],
    ["Sarah", "[email protected]"  ],
    ["Afshin", "[email protected]"    ],
  ],
  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>
@danielwlogan
Copy link

Duplicate of #1432 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants