Usage example, including component, action, motion, or utility API
I tried to use the clipboard action for a "share link" button in a map. When clicked, it should read the current map center and zoom level and create a URL from that information. Since clipboard can only handle a fix string, I can't evaluate the text right on click.
It would be great to alternatively support a function which creates the text on the fly.
Possible implementation - describe how the feature can be implemented
Right now I implemented this feature in my project in the following way:
Usage example, including component, action, motion, or utility API
I tried to use the
clipboard
action for a "share link" button in a map. When clicked, it should read the current map center and zoom level and create a URL from that information. Sinceclipboard
can only handle a fix string, I can't evaluate the text right on click.It would be great to alternatively support a function which creates the text on the fly.
Possible implementation - describe how the feature can be implemented
Right now I implemented this feature in my project in the following way:
I would love to contribute, if this is a feature, you would like to include.
Do you want to contribute this feature and create a pull request
Yes