Extend BooleanColumn to allow rendering a placeholder for false values #16933
Labels
complexity: low
Requires minimal effort to implement
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
NetBox version
v4.0.7
Feature type
New functionality
Proposed functionality
Currently, NetBox's custom BooleanColumn will render a checkmark for true values, an X for false values, and a placeholder for null values.
This FR proposes new keyword arguments which enable overriding the default HTML content for true and false values. Setting either of these to None will render an empty placeholder, as with null values.
Use case
Sometimes a negative condition is not inherently problematic, and is not appropriate to flag as "wrong" using a red X. For example, consider the "management only" field on the interface model. We care to indicate when an interface has been so designated, but otherwise this attribute needs no further attention. (Contrast this to the "enabled" field, wherein a false value is likely more worthy of consideration.)
Database changes
None
External dependencies
None
The text was updated successfully, but these errors were encountered: