AssetPickerDialog
AssetPickerDialog
A dialog which allows the creation and selection of assets.
Signature
function AssetPickerDialog(props: AssetPickerDialogProps): void
Parameters
props
parameter
AssetPickerDialogProps
Props for the AssetPickerDialog component.
Signature
interface AssetPickerDialogProps {
open: boolean;
onClose: () => void;
onSelect: (assets: Asset[]) => void;
multiSelect?: boolean;
initialSelectedAssets?: Asset[];
title?: string;
}
open
property
booleanWhether the dialog is open.
onClose
property
() => voidThe function to call when the dialog is closed.
onSelect
property
(assets: Asset[]) => voidThe function to call when assets are selected.
multiSelect
property
booleanWhether multiple assets can be selected.
initialSelectedAssets
property
Asset[]The initial assets that should be selected.
title
property
stringThe title of the dialog.