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 stop excel export event? #7666

Open
chrisfw791127 opened this issue Dec 26, 2024 · 0 comments
Open

how to stop excel export event? #7666

chrisfw791127 opened this issue Dec 26, 2024 · 0 comments
Labels
help-wanted Issues we need or would love help from the community to resolve.

Comments

@chrisfw791127
Copy link

chrisfw791127 commented Dec 26, 2024

Description

I want to stop the Excel export event when a == 3, but it's not working. How should I fix my code?

example:

//a=1~5

$('#table').on('export-started.bs.table', function (e) {
if(a == 3){
e.preventDefault();
e.stopPropagation();
return false;
}
});

https://live.bootstrap-table.com/code/chrisfw791127/18485

Example(s)

No response

@chrisfw791127 chrisfw791127 added the help-wanted Issues we need or would love help from the community to resolve. label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted Issues we need or would love help from the community to resolve.
Projects
None yet
Development

No branches or pull requests

1 participant