Constructor
# new BadgeRenderer(config)
Creates an instance of BadgeRenderer.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
config |
Object | |||
backgroundColor |
string |
<optional> |
'#1E2025' | |
fontFamily |
string |
<optional> |
'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' | |
fontSize |
string |
<optional> |
'14px' | |
fontWeight |
string |
<optional> |
'bold' | |
position |
BadgePosition |
<optional> |
BadgePosition.BOTTOM_LEFT | |
text |
string |
<optional> |
||
textColor |
string |
<optional> |
'#FCFCFC' |
Members
Object
# static constant BadgePosition
BadgePosition
Properties:
Name | Type | Description |
---|---|---|
TOP_LEFT |
number | |
TOP_RIGHT |
number | |
BOTTOM_RIGHT |
number | |
BOTTOM_LEFT |
number |