Skip to main content

MediaLibraryOptions

@lowcode/builder-web


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?​

optional mimeTypeFilter: 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()?​

optional onSelect: (attachment) => void

Defined in: apps/builder-web/src/types.ts:443

Callback при выборе attachment

Parameters​

attachment​

Attachment

Returns​

void


projectId​

projectId: string

Defined in: apps/builder-web/src/types.ts:437

ID проекта для фильтрации attachments


selectedAttachmentId?​

optional selectedAttachmentId: string

Defined in: apps/builder-web/src/types.ts:440

ID выбранного attachment (если открыли на редактирование)