Interface: AnyDropToolbarContext
Defined in: ui/src/types.ts:196
Context of the toolbar.
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
can | object | - | - | ui/src/types.ts:206 |
can.clear | boolean | - | - | ui/src/types.ts:206 |
can.pauseAll | boolean | - | - | ui/src/types.ts:206 |
can.resumeAll | boolean | - | - | ui/src/types.ts:206 |
can.retryFailed | boolean | - | - | ui/src/types.ts:206 |
counts | FolderCounts | Counts of the whole tree. | - | ui/src/types.ts:202 |
el | HTMLElement | The library-owned .ad-toolbar. | - | ui/src/types.ts:199 |
instance | AnyDrop | The instance. | AnyDropRenderContext.instance | ui/src/types.ts:117 |
kind | "toolbar" | - | - | ui/src/types.ts:197 |
layout | string & object | AnyDropLayout | The current layout. | AnyDropRenderContext.layout | ui/src/types.ts:119 |
parts | object | - | - | ui/src/types.ts:200 |
parts.actions | HTMLElement | - | - | ui/src/types.ts:200 |
parts.info | HTMLElement | - | - | ui/src/types.ts:200 |
progress | number | 0 to 100, rounded. | - | ui/src/types.ts:204 |
summaryText | string | - | - | ui/src/types.ts:205 |
Methods
clear()
ts
clear(): void;Defined in: ui/src/types.ts:210
Returns
void
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
pauseAll()
ts
pauseAll(): void;Defined in: ui/src/types.ts:207
Returns
void
resumeAll()
ts
resumeAll(): void;Defined in: ui/src/types.ts:208
Returns
void
retryFailed()
ts
retryFailed(): void;Defined in: ui/src/types.ts:209
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