jquery-bracket icon indicating copy to clipboard operation
jquery-bracket copied to clipboard

Custom winner not based on score

Open yarus opened this issue 7 years ago • 3 comments

Hi guys.

I was trying to use this library to visualize tournament bracket which i have for freestyle wrestling tournament in my database. And i faced a couple of issues with that.

  1. I cant set winner of the match - it is set automatically based on score. But in freestyle wrestling you may have higher scores and lose the match because of tushe (when opponent put your shoulders on mat and keept in this position for 3 seconds). So the score might be 4:8 and first wrestler won because of tushe.

  2. I was trying to workaround this limitation by using custom rendering. I calculated results based on my data and set score as 1 for winner and 0 for looser. Then I tried to set visibility: hidden for label and score div and append my own div with names and real points to team parent div in render decorator. The problem is i can't completly remove these label and score divs - they interfear with my own div and brake rendering - looks like width and height for container and score/label divs is calculated after rendering and i can't affect on this.

So could you guys help me either to get ability to set winner via input data or help to figure out how to use my own div for rendering. I found helpful that library can draw bracket for me but what i want is to render completly custom data in cells.

yarus avatar Jul 02 '18 10:07 yarus

I have a similar issue with custom Winner, in this case when there is a draw. Is there a way to include an additional field to resolve the winner, or simply state who the winner is regardless of the result?

PauloRamosGit avatar Aug 15 '18 09:08 PauloRamosGit

I have same problem. Guys did you solve it?

janpevny avatar Sep 18 '18 06:09 janpevny

Same, kinda sad that there is no answer

EpsilonKu avatar Aug 21 '21 10:08 EpsilonKu