slots
Home > @gooddata/sdk-ui-dashboard > IDefaultScheduledEmailDialogProps > slots
IDefaultScheduledEmailDialogProps.slots property
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Section-level overrides. Each slot receives { Default, defaultProps } and may render its own content (replace) or <Default {...defaultProps} /> inside its own markup (wrap).
Signature:
slots?: IScheduledEmailDialogSlots;
Example
The dialog is reached through the Dashboard component override; define slot components at module scope (see ):
function RecipientsWithNote({ Default, defaultProps }: ISlotProps<IScheduledEmailDialogRecipientsProps>) {
return (
<>
<Default {...defaultProps} />
<Note>External recipients receive a public link.</Note>
</>
);
}
<Dashboard
ScheduledEmailDialogComponent={(props) => (
<DefaultScheduledEmailDialog {...props} slots={{ Recipients: RecipientsWithNote }} />
)}
/>;