Interface: AnyDropErrorItemContext
Defined in: ui/src/types.ts:234
Context of an error panel row.
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
entry | ErrorEntry | - | - | ui/src/types.ts:236 |
file | AnyDropFile | null | - | - | ui/src/types.ts:238 |
index | number | - | - | ui/src/types.ts:237 |
instance | AnyDrop | The instance. | AnyDropRenderContext.instance | ui/src/types.ts:117 |
kind | "errorItem" | - | - | ui/src/types.ts:235 |
layout | string & object | AnyDropLayout | The current layout. | AnyDropRenderContext.layout | ui/src/types.ts:119 |
parts | object | - | - | ui/src/types.ts:241 |
parts.retry | HTMLButtonElement | null | - | - | ui/src/types.ts:241 |
parts.text | HTMLElement | - | - | ui/src/types.ts:241 |
row | HTMLElement | The library-owned .ad-error-row. | - | ui/src/types.ts:240 |
Methods
html()
ts
html(strings, ...values): HTMLElement;Defined in: ui/src/types.ts:123
Builds DOM from markup; every ${value} is HTML-escaped.
Parameters
| Parameter | Type |
|---|---|
strings | TemplateStringsArray |
...values | unknown[] |
Returns
HTMLElement
Inherited from
icon()
ts
icon(name): HTMLElement;Defined in: ui/src/types.ts:125
<span class="ad-icon" aria-hidden="true"> holding the configured icon.
Parameters
| Parameter | Type |
|---|---|
name | | string & object | AnyDropIconName |
Returns
HTMLElement
Inherited from
retry()
ts
retry(): void;Defined in: ui/src/types.ts:243
Retries the file (a no-op when the entry is not retryable).
Returns
void
t()
ts
t(key, vars?): string;Defined in: ui/src/types.ts:121
The current text of a dict* option, with placeholders replaced. Unknown keys return the key.
Parameters
| Parameter | Type |
|---|---|
key | | "dictFileTooBig" | "dictInvalidFileType" | "dictResponseError" | "dictUploadCanceled" | "dictMaxFilesExceeded" | "dictFileUnreadable" | "dictInvalidPath" | "dictFileSizeUnits" | keyof AnyDropDict |
vars? | Record<string, string | number> |
Returns
string