noob question
#186
-
Hello, I am newbie in javascript. can i use this package in client side? additionally, how to add multiple games per match example best of 3 match |
Beta Was this translation helpful? Give feedback.
Answered by
Drarig29
Oct 23, 2023
Replies: 1 comment
-
Hi! Yes you can use it client-side by importing the viewer. The manager is shipped inside it. <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brackets-viewer@latest/dist/brackets-viewer.min.js"></script> After this, you can use the manager with To have best of 3 matches, you can do the following: await window.bracketsManager.create({
name: 'Example stage',
tournamentId: 0,
type: 'single_elimination',
matchesChildCount: 3,
seeding: [
'Team 1',
'Team 2',
'Team 3',
'Team 4',
'Team 5',
'Team 6',
'Team 7',
'Team 8',
],
}); Documentation: https://drarig29.github.io/brackets-docs/reference/model/interfaces/StageSettings.html#matchesChildCount |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
r-joey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Yes you can use it client-side by importing the viewer. The manager is shipped inside it.
After this, you can use the manager with
window.bracketsManager
.To have best of 3 matches, you can do the following:
Documentation: https://drarig29.github.io/brackets-docs/reference/model/interfaces/Stage…