Skip to main content

AttachmentImageOptions

@lowcode/runtime-core


Interface: AttachmentImageOptions

Defined in: components/AttachmentImage.tsx:59

Опции для функции createAttachmentImage.

Properties​

cacheTtlMs?​

optional cacheTtlMs: number

Defined in: components/AttachmentImage.tsx:83

TTL кеша в миллисекундах.

По умолчанию 5 минут.


fetchAttachment​

fetchAttachment: FetchAttachmentFn

Defined in: components/AttachmentImage.tsx:65

Функция для загрузки attachment по ID.

Предоставляется хостом (builder-web или runtime-host).


normalizeExternalUrl()?​

optional normalizeExternalUrl: (url) => string

Defined in: components/AttachmentImage.tsx:76

Нормализует внешние URL перед рендером.

Parameters​

url​

string

Returns​

string


refreshAttachment?​

optional refreshAttachment: FetchAttachmentFn

Defined in: components/AttachmentImage.tsx:71

Функция для обновления presigned URL по ID.

Опционально. Если не задана, повторный refresh не выполняется.