Custom Link Icons #9696

Closed
opened 2025-12-29 21:21:02 +01:00 by adam · 5 comments
Owner

Originally created by @hendrikbl on GitHub (May 17, 2024).

NetBox version

v4.0.2

Feature type

Change to existing functionality

Proposed functionality

The ability to add an optional icon to custom links to visually improve the rendered buttons. Either by providing a selection of available mdi icons or by providing a text field where users can input the name of the mdi icon. By making this field optional we do not create any breaking changes to existing custom links.

Use case

Having icons in buttons created by custom links would lead to a quicker recognition of the links purpose. E.g. mdi-web could be used with a link that opens an ip in your web browser.
Also almost every button in netbox uses an icon so having this option for custom links would make them fit better into the overall visual experience.

Database changes

The CustomLink model needs an additional field (e.g. button_icon) to store the icon.

External dependencies

None

Originally created by @hendrikbl on GitHub (May 17, 2024). ### NetBox version v4.0.2 ### Feature type Change to existing functionality ### Proposed functionality The ability to add an optional icon to custom links to visually improve the rendered buttons. Either by providing a selection of available mdi icons or by providing a text field where users can input the name of the mdi icon. By making this field optional we do not create any breaking changes to existing custom links. ### Use case Having icons in buttons created by custom links would lead to a quicker recognition of the links purpose. E.g. `mdi-web` could be used with a link that opens an ip in your web browser. Also almost every button in netbox uses an icon so having this option for custom links would make them fit better into the overall visual experience. ### Database changes The `CustomLink` model needs an additional field (e.g. `button_icon`) to store the icon. ### External dependencies None
adam added the type: featurepending closurestatus: under reviewcomplexity: high labels 2025-12-29 21:21:02 +01:00
adam closed this issue 2025-12-29 21:21:03 +01:00
Author
Owner

@alehaa commented on GitHub (May 18, 2024):

seems to be a duplicate of #6877. FYI: The workaround using an <i> doesnt work anymore but you can use <div class="d-inline"> instead.

@alehaa commented on GitHub (May 18, 2024): seems to be a duplicate of #6877. FYI: The workaround using an `<i>` doesnt work anymore but you can use `<div class="d-inline">` instead.
Author
Owner

@hendrikbl commented on GitHub (May 18, 2024):

Oh you're right, sorry for the duplicate. We had the <i> solution before.
I will try your's asap.

@hendrikbl commented on GitHub (May 18, 2024): Oh you're right, sorry for the duplicate. We had the `<i>` solution before. I will try your's asap.
Author
Owner

@DanSheps commented on GitHub (May 20, 2024):

Going to need to look into this a little more to see if it is a netbox thing or a HTML/CSS framework thing.

@DanSheps commented on GitHub (May 20, 2024): Going to need to look into this a little more to see if it is a netbox thing or a HTML/CSS framework thing.
Author
Owner

@github-actions[bot] commented on GitHub (Aug 27, 2024):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Aug 27, 2024): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Sep 27, 2024):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Sep 27, 2024): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9696