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

Ability to change the clipboard config dynamically #4439

Open
Tyoneb opened this issue Mar 19, 2024 · 0 comments
Open

Ability to change the clipboard config dynamically #4439

Tyoneb opened this issue Mar 19, 2024 · 0 comments
Labels
Suggested Feature A suggested feature that is waiting review

Comments

@Tyoneb
Copy link

Tyoneb commented Mar 19, 2024

Use case

I would like to be able to disable the copy of the headers when calling the copyToClipboard method, but only in some cases.

Currently, the clipboardCopyConfig is passed to the Tabulator constructor and cannot be updated dynamically or overridden when calling the clipboard methods.

Although my current need only applies to the headers, I think it would be wise to extend any improvements to the global clipboard configuration object.

Desired solution

Ideally, I would like to pass options to the copyToClipboard method, that would override the default ones that were passed to the Tabulator constructor.

Alternative solution

Another way, a bit less practical in my case, but still acceptable, would be to allow a callback function for the options of the clipboardCopyConfig.

Additional context

This feature request was initially discussed on Discord and was opened here following Oli's comment:

That isn't possible currently, that is certainly something that could be added. If you would like to see that functionality please raise a feature request on the GitHub repo

@Tyoneb Tyoneb added the Suggested Feature A suggested feature that is waiting review label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Suggested Feature A suggested feature that is waiting review
Projects
None yet
Development

No branches or pull requests

1 participant