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

How to use datatable with Svelte #119

Open
mcmxcdev opened this issue Dec 8, 2020 · 0 comments
Open

How to use datatable with Svelte #119

mcmxcdev opened this issue Dec 8, 2020 · 0 comments

Comments

@mcmxcdev
Copy link

mcmxcdev commented Dec 8, 2020

The documentation about using it with the NPM ecosystem is unfortunately not very informative, I want to use frappe-datatable like this:

<script>
  import DataTable from 'frappe-datatable';

  const columns = ['Name', 'Position', 'Salary'];
  const data = [
    ['Faris', 'Software Developer', '$1200'],
    ['Manas', 'Software Engineer', '$1400'],
  ];
</script>

<DataTable id="datatable" columns="{columns}" data="{data}" />

but I receive: frappe-datatable.cjs.js:5552 Uncaught (in promise) Error: Invalid argument given for wrapper

How can I get it to work?

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

1 participant