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

Render multiple match rounds in bracket

Open teijo opened this issue 12 years ago • 4 comments

Match with multiple rounds, e.g. best-of-3 match, could render results of each round of a match. Current rendering corresponds to BO1 style for matches. BO3 could have 2 or 3 results displayed next to each other in the match container.

teijo avatar Sep 18 '13 18:09 teijo

I think it should be a onhover popup (which would make the logic seperate from jquery-bracket) or expandable div, so that it keeps the main UI clean.

thestamp avatar Oct 07 '13 21:10 thestamp

I would love to see this feature implemented. NBA/MLB/NHL style. For MLB the number of games is variable for each round. BOF1(wildcard)/BOF5/BOF7/BOF7

charlesdoutriaux avatar Jan 10 '14 21:01 charlesdoutriaux

i guess @thestamp is right it could be a separate js/onhover. but you could also be driving this from the result, passing a tuple of tuple for the results. With the inner tuple being each game's result, so if the inner tuple is length 7 then it's a best of 7 (pass null for not played yet games)

charlesdoutriaux avatar Jan 10 '14 21:01 charlesdoutriaux

A good approach would probably be to have an overrideable function for rendering and determining the result. This way it would be up to the bracket user to decide in which format the data is stored as only those two functions need to know how to handle it.

Default functions for rendering and determining the winner would be extracted from the current logic.

teijo avatar Jan 11 '14 20:01 teijo