AttachmentImageOptions
Interface: AttachmentImageOptions
Defined in: components/AttachmentImage.tsx:59
Опции для функции createAttachmentImage.
Properties
cacheTtlMs?
optionalcacheTtlMs: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()?
optionalnormalizeExternalUrl: (url) =>string
Defined in: components/AttachmentImage.tsx:76
Нормализует внешние URL перед рендером.
Parameters
url
string
Returns
string
refreshAttachment?
optionalrefreshAttachment:FetchAttachmentFn
Defined in: components/AttachmentImage.tsx:71
Функция для обновления presigned URL по ID.
Опционально. Если не задана, повторный refresh не выполняется.