Skip to content

Enable Click-to-Copy Functionality for text Badges #266

@henriduflot

Description

@henriduflot

What feature do you want to see added?

I would like to request a feature that allows a badge with text to be easily copied. Specifically, I propose adding an additional parameter, such as clickToCopy (or another suitable name), which would enable users to click on the badge to copy its text content.

In my use case, this feature would be particularly helpful for quickly copying identifiers or ticket numbers displayed on badges. It would improve usability and save time for users who frequently need to retrieve such information.

Example

addBadge text: ticket_number, style: 'color: var(--accent-color)', cssClass: 'badge-text--background', clickToCopy: true

Upstream changes

No response

Are you interested in contributing this feature?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions