|
const eventTemplate = (props) => {
if (!props) return null;
return (
<div style={{ minWidth: '150px', maxWidth: '100%', overflowWrap: 'break-word' }}>
<div style={{ fontSize: '11px', color: '#333', marginBottom: '8px' }}>
<strong style={{ fontSize: '11px', color: '#000' }}>User ID:</strong> {props.anaUserId}
</div>
<div style={{ fontSize: '11px', color: '#333' }}>
<strong style={{ fontSize: '11px', color: '#000' }}>Shift Type:</strong> {props.shiftTypeId}
</div>
</div>
);
};
<div className='control-wrapper'>
<ScheduleComponent
cssClass='timeline-resource-grouping'
width='100%'
height='450px'
rowAutoHeight={true}
selectedDate={new Date(2025, 0, 4)}
currentView='TimelineWeek'
eventSettings={{ dataSource: data, fields: fieldMappings, allowAdding: false, allowDeleting: false, template: eventTemplate}}
editorTemplate={editorTemplate}
popupClose={onPopupClose
|