GraffitiSuite Docs
Docs
Graffitibadge
Loading document parsing libraries...
# GraffitiBadge Class Inherits GraffitiUIControl ## About GraffitiBadge is a simple yet powerful addition to your UI toolkit. Display responsively-sized badges anywhere and everywhere without worrying about font sizes. Features: * Automatic text sizing * Custom background color * Custom text color * ColorGroup support * Button functionality * Pill display mode ## Preview  Previous Next ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | False | True | ### Console | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### Desktop | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### iOS | 32-Bit | 64-Bit | | :---: | :---: | | False | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Event Definitions | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | DoublePressed | (None) | (None) | Raised when the badge is double-clicked or double-pressed. | | Pressed | (None) | (None) | Raised when the badge is clicked or pressed via touch. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | BackgroundColor | ColorGroup | Nil | Color set applied to the badge's background. | | FontStyle | GraffitiUIControl.FontStyles | Nil | Determines the style of font used. | | IsButton | Boolean | Nil | When True, the badge will respond visually to mouse actions. | | IsPill | Boolean | Nil | When True, the badge displays with more rounded corners. | | Text | String | Nil | Text to display within the badge. | | TextColor | ColorGroup | Nil | Color set applied to the badge's foreground. |