pages/fullcalendar-main/packages/timegrid/src/TimeBodyAxis.tsx

22 lines
686 B
TypeScript
Raw Normal View History

2024-03-06 14:33:17 +01:00
import { BaseComponent } from '@fullcalendar/core/internal'
import { createElement } from '@fullcalendar/core/preact'
import { TimeColsAxisCell } from './TimeColsAxisCell.js'
import { TimeSlatMeta } from './time-slat-meta.js'
/* Thin Axis
------------------------------------------------------------------------------------------------------------------*/
interface TimeBodyAxisProps {
slatMetas: TimeSlatMeta[]
}
export class TimeBodyAxis extends BaseComponent<TimeBodyAxisProps> { // just <tr> content
render() {
return this.props.slatMetas.map((slatMeta: TimeSlatMeta) => (
<tr key={slatMeta.key}>
<TimeColsAxisCell {...slatMeta} />
</tr>
))
}
}