From 65b399c8b814075cf224c177e52a220f4c0ffba2 Mon Sep 17 00:00:00 2001 From: Martin <165722506+maddin8@users.noreply.github.com> Date: Tue, 2 Apr 2024 13:45:31 +0200 Subject: [PATCH] Fixes https://github.com/netbox-community/netbox/issues/15597: Document the value behind "Default" for the Custom Link "Button Class" --- docs/customization/custom-links.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/customization/custom-links.md b/docs/customization/custom-links.md index baae1db4f..ed59841ff 100644 --- a/docs/customization/custom-links.md +++ b/docs/customization/custom-links.md @@ -60,6 +60,30 @@ The link will only appear when viewing a device with a manufacturer name of "Cis Group names can be specified to organize links into groups. Links with the same group name will render as a dropdown menu beneath a single button bearing the name of the group. +## Button classes + +Button classes can be specified for custom links which will make the dropdown button in the UI appear as specified. If multiple links are grouped together, the button class of the first link in a group will be used for the dropdown button. + +The following values are possible when bulk-importing custom links: + +| Button class | Value for bulk imports | +|-----------|-------------------------------------------------------------------------------------------------------------------| +| `Default` | `outline-dark` | +| `Blue` | `blue` | +| `Indigo` | `indigo` | +| `Purple` | `purple` | +| `Pink` | `pink` | +| `Red` | `red` | +| `Orange` | `orange` | +| `Yellow` | `yellow` | +| `Green` | `green` | +| `Teal` | `teal` | +| `Cyan` | `cyan` | +| `Gray` | `gray` | +| `Black` | `black` | +| `White` | `white` | +| `Link` | `ghost-dark` | + ## Table Columns Custom links can also be included in object tables by selecting the desired links from the table configuration form. When displayed, each link will render as a hyperlink for its corresponding object. When exported (e.g. as CSV data), each link render only its URL.