Mini Widgets
Badges
Badge

The badge is suitable for visually highlighting special features of records. It can be used independently in the database or employed in other widgets, such as the Custom Table.
Application Code
The following application code includes all possible parameters for this mini-widget badge.
Detailed Description of the Parameters
uniqueId should be assigned individually and should be unique on your surface. The rationale behind this is: If you create multiple badges with different settings on your page, the styles do not overwrite each other.
value outputs the text value in the badge.
width specifies the width of your badge.
iconPosition is the position of the icon within the badge.
fontSize specifies the font size of the text in the badge.
fontWeight determines the thickness of your text.
borderRadius determines the rounding of the corners of the badge.
embedded is used when you do not use the button within another widget. By default, this is set to true.
A Color with Gradations
If you specify a singleColor, then all other colors (all values with Color) will automatically adjust to this value. This means you do not need to fill in the following color values.
Custom Color Design
fontColor specifies the color of the text.
backgroundColor specifies the color of the background.
borderColor specifies the color of the border.
Default Values as Fallback
💡 Note: If you do not enter values for the parameters, a fallback value is usually stored in the system. In some places, such as calculation fields (actual numerical values, for example), this does not make sense. However, it does in style parameters like colors or sizes. Here you see the code without entered values and the standard values in the comments behind: