Skip to content

Add the ability to pass classes to the copy button #14390

@abhi1693

Description

@abhi1693

NetBox version

v3.6.6

Feature type

Change to existing functionality

Proposed functionality

Add an optional parameter to the copy_button method to allow for passing additional classes.

Use case

Pass d-none class to the element to programatically show and hide the copy button based on a condition.

Related bug report: Onemind-Services-LLC/netbox-secrets#104

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions