Create a new leaderboard ui builder
new LeaderboardBuilder()
The grapheme provider of this builder.
the height of this builder.
The options manager of this builder.
The tailwind subset to apply to this builder.
the width of this builder.
Get the style of this builder.
Add component to this builder.
Parameter | Type | Description | Optional |
---|---|---|---|
component | the component to add. |
Adjust the canvas size.
Convert this builder into an image.
Parameter | Type | Description | Optional |
---|---|---|---|
options | the build options. |
Set background for this leaderboard ui
Parameter | Type | Description | Optional |
---|---|---|---|
background | background image |
Set background color for this leaderboard ui
Parameter | Type | Description | Optional |
---|---|---|---|
color | background color |
Set grapheme image provider for this builder.
Parameter | Type | Optional |
---|---|---|
provider |
Set header for this leaderboard ui
Parameter | Type | Description | Optional |
---|---|---|---|
data | header data |
Set players for this leaderboard ui. The canvas size will be adjusted automatically based on the number of players.
Parameter | Type | Description | Optional |
---|---|---|---|
players | players data |
Set the style of this builder.
Parameter | Type | Description | Optional |
---|---|---|---|
newStyle | CSSProperties | the new style. |
Configures the text renderer for this leaderboard.
Parameter | Type | Description | Optional |
---|---|---|---|
config | The configuration for this leaderboard. |
Set the ui variant for this leaderboard
Parameter | Type | Description | Optional |
---|---|---|---|
variant | ui type |
Create a builder from builder template.
Parameter | Type | Optional |
---|---|---|
template |
/docs/canvacord/class/LeaderboardBuilder