-
Notifications
You must be signed in to change notification settings - Fork 78
Added new kb article autocomplete-copy-text-itemtemplate #3018
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
base: master
Are you sure you want to change the base?
Added new kb article autocomplete-copy-text-itemtemplate #3018
Conversation
|
||
private async Task CopyToClipboard(string text) | ||
{ | ||
await JS.InvokeVoidAsync("navigator.clipboard.writeText", text); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a check if this functionality is allowed by the browser to avoid crashes due to missing permissions.
|
||
<style> | ||
.copy-button { | ||
margin-left: 8px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a gap style on the flex div instead
type: how-to | ||
page_title: How to Enable Text Copy in AutoComplete Dropdown Blazor | ||
slug: autocomplete-kb-copy-text-itemtemplate | ||
tags: autocomplete, blazor, itemtemplate, clipboard, text, copy, paste |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tags: autocomplete, blazor, itemtemplate, clipboard, text, copy, paste | |
tags: blazor, autocomplete, itemtemplate, clipboard, copy, paste |
No description provided.