MomentumEventProps
Defined in: packages/react/src/momentum-types.ts:98
Type Parameters
| Type Parameter |
|---|
E |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
eventKind | readonly | Accessor<E, MomentumEventKind> | - | packages/react/src/momentum-types.ts:112 |
eventLabel? | readonly | Accessor<E, string> | Text for the readout and for screen readers. Defaults to the kind. | packages/react/src/momentum-types.ts:114 |
eventPeriod | readonly | Accessor<E, number> | The period the event happened in, numbered like the samples' period: 1 for the first half. StatsBomb's period is already this. Required because minutes restart at 45 for the second half: a minute like 46' is in both halves when the first had stoppage time. An event in a period the chart has no panel for is not drawn. | packages/react/src/momentum-types.ts:110 |
events | readonly | readonly E[] | - | packages/react/src/momentum-types.ts:99 |
eventSide | readonly | Accessor<E, MomentumSide> | - | packages/react/src/momentum-types.ts:111 |
eventTime | readonly | Accessor<E, number> | Match minute of the event, as the feed numbers it. | packages/react/src/momentum-types.ts:101 |