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

Closed
opened 2025-12-29 20:42:38 +01:00 by adam · 0 comments
Owner

Originally created by @abhi1693 on GitHub (Nov 30, 2023).

Originally assigned to: @abhi1693 on GitHub.

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: https://github.com/Onemind-Services-LLC/netbox-secrets/issues/104

Database changes

No response

External dependencies

No response

Originally created by @abhi1693 on GitHub (Nov 30, 2023). Originally assigned to: @abhi1693 on GitHub. ### 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: https://github.com/Onemind-Services-LLC/netbox-secrets/issues/104 ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:42:38 +01:00
adam closed this issue 2025-12-29 20:42:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8898