Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElideLabel ¶
ElideLabel truncates labels that exceed maxWidth pixels using middle ellipsis strategy for better readability.
Example:
label := ElideLabel("Cloud Engineering Leadership", 90)
// Returns: "Cloud Engi...dership"
func ElideLabelEnd ¶
ElideLabelEnd truncates labels at the end if they exceed maxWidth.
Example:
label := ElideLabelEnd("Very long description text", 50)
// Returns: "Very long descri..."
func ElideLabelWithContext ¶
ElideLabelWithContext automatically detects label type and applies the most appropriate elision strategy.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.