g-loot / react-tournament-brackets

React component library for displaying bracket leaderboards
https://sleepy-kare-d8538d.netlify.app/?path=/story/components-bracket--bracket
GNU Lesser General Public License v2.1
219 stars 69 forks source link

Custom header text #48

Closed kiznick closed 1 year ago

kiznick commented 1 year ago

if isCustomText = true header text will display tournamentRoundText. If isCustomText = false, tournamentRoundText will be header text If isCustomText = false or not define header text will be the same (Round X, Semi-Final, Final)

Shenato commented 1 year ago

I think that it's better to allow full customizability of the round header text through a callback function, I've implemented the same feature in this commit https://github.com/g-loot/react-tournament-brackets/commit/0a65ebbaeeb60f15dc9f1efc344d7b822235fcb0 Let me know if that's what you were after!

kiznick commented 1 year ago

I think that it's better to allow full customizability of the round header text through a callback function, I've implemented the same feature in this commit 0a65ebb Let me know if that's what you were after!

thank you! This is what I want (It's much better than mine.)