teijo / jquery-bracket

jQuery Bracket library for organizing single and double elimination tournaments
http://aropupu.fi/bracket/
MIT License
482 stars 253 forks source link

match information within tennis-version of tournament-brackets #177

Open Sakerfalke opened 4 years ago

Sakerfalke commented 4 years ago

Is it possible to show the match information within this tennis-version of the tournament-brackets? in the html: <div><span id="#matchCallback">Show the matchinformation here.</span></div>

using: function onclick(data) { $('#matchCallback').text("onclick(data: '" + data + "')") } function onhover(data, hover) { $('#matchCallback').text("onhover(data: '" + data + "', hover: " + hover + ")") } in the script.

And for the results on this position for instance: var finalBracket = { teams: [ ["player 1", "player 2"], ["player 3", "player 4"] ], results: [ [ [[,,], [,,],'match info 1'], [[,,], [,,],'match info 2'] ] [ [[,,], [,,], 'match info 3'] ] ] }

RenautMestdagh commented 2 years ago

I dont know if i understand you question correctly but maybe this is something usefull in combination with this for the visibility property