tods-score-grid

0.13.14 • Public • Published

tods-score-grid

React draw display for TODS tournament draw structures / brackets

yarn install
yarn storybook

Online Documentation

Interactive Storybook documentation/demos.

Example

alt text

Use

ScoreGrid requires eventData which is produced by Competition Factory. Examples of ScoreGrid can be see in the Factory documentation.

import { ScoreGrid } from 'tods-score-grid';

const Draw = () => {
  const { eventData } =
    tournamentEngine.getEventData({
      participantsProfile: { withIOC: true, withISO2: true },
      eventId
    }) || {};

  const compositionName = utilities.randomMember(['Australian', 'Wimbledon', 'National', 'US Open', 'French', 'ITF']);

  return (
    <div style={{ zoom: 0.9 }}>
      <ScoreGrid compositionName={compositionName} eventData={eventData} events={{}} />
    </div>
  );
};

Package Sidebar

Install

npm i tods-score-grid

Weekly Downloads

1

Version

0.13.14

License

MIT

Unpacked Size

2.87 MB

Total Files

8

Last publish

Collaborators

  • courthive