MediaLibraryOptions
Interface: MediaLibraryOptions
Defined in: apps/builder-web/src/types.ts:432
Опции для MediaLibrary модалки.
Properties
isOpen
isOpen:
boolean
Defined in: apps/builder-web/src/types.ts:434
Открыта ли модалка
mimeTypeFilter?
optionalmimeTypeFilter:string
Defined in: apps/builder-web/src/types.ts:449
Фильтр по MIME type (например, 'image/*')
onClose()
onClose: () =>
void
Defined in: apps/builder-web/src/types.ts:446
Callback при закрытии
Returns
void
onSelect()?
optionalonSelect: (attachment) =>void
Defined in: apps/builder-web/src/types.ts:443
Callback при выборе attachment
Parameters
attachment
Returns
void
projectId
projectId:
string
Defined in: apps/builder-web/src/types.ts:437
ID проекта для фильтрации attachments
selectedAttachmentId?
optionalselectedAttachmentId:string
Defined in: apps/builder-web/src/types.ts:440
ID выбранного attachment (если открыли на редактирование)