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

Make name prop accept variables #18

Closed
omnidepp opened this issue Mar 5, 2024 · 2 comments
Closed

Make name prop accept variables #18

omnidepp opened this issue Mar 5, 2024 · 2 comments

Comments

@omnidepp
Copy link

omnidepp commented Mar 5, 2024

Instead of having to hard code the name like this:

<download-excel :data=output type="xlsx" worksheet="E-Mails" name="data.xlsx">
            <button>Download Excel </button>
</download-excel>

I would like to dynamically specify the name of the created xlsx like this:

<download-excel :data=output type="xlsx" worksheet="E-Mails" :name=myNameVar>
            <button>Download Excel </button>
</download-excel>

This does not seem to work at the moment.

@pratik227
Copy link
Owner

@omnidepp Your syntax is wrong.


 <JsonExcel :data="json_data" :name="name">
      Download Data
      <img src="download_icon.png"/>
    </JsonExcel>

Works for for me no issues.

Thanks,
Pratik Patel

@pratik227
Copy link
Owner

Closing these issue

@pratik227 pratik227 reopened this Mar 5, 2024
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