BootstrapUploadControl Class

Declaration

export class BootstrapUploadControl extends Control

Inheritance

Control
BootstrapUploadControl

Methods

addFileInput Method

Declaration

addFileInput(): void

cancel Method

Declaration

cancel(): void

clearText Method

Declaration

clearText(): void

getAddButtonText Method

Declaration

getAddButtonText(): string

Returns

Type Description

getEnabled Method

Declaration

getEnabled(): boolean

Returns

Type Description

getFileInputCount Method

Declaration

getFileInputCount(): number

Returns

Type Description

getSelectedFiles Method

Declaration

getSelectedFiles(inputIndex: number): array[BootstrapUploadControlFile]

Parameters

Type Name Description
inputIndex

Returns

Type Description

getText Method

Declaration

getText(index: number): string

Parameters

Type Name Description
index

Returns

Type Description

getUploadButtonText Method

Declaration

getUploadButtonText(): string

Returns

Type Description

off Method

Declaration

off(eventName?: K, callback?: (this: BootstrapUploadControl, args?: BootstrapUploadControlEventMap[K]) => void): this

Parameters

Type Name Description
eventName
callback

Returns

Type Description

on Method

Declaration

on(eventName: K, callback: (this: BootstrapUploadControl, args?: BootstrapUploadControlEventMap[K]) => void): this

Parameters

Type Name Description
eventName
callback

Returns

Type Description

once Method

Declaration

once(eventName: K, callback: (this: BootstrapUploadControl, args?: BootstrapUploadControlEventMap[K]) => void): this

Parameters

Type Name Description
eventName
callback

Returns

Type Description

removeFileFromSelection Method

Declaration

removeFileFromSelection(fileIndex: number): void

Parameters

Type Name Description
fileIndex

removeFileInput Method

Declaration

removeFileInput(index: number): void

Parameters

Type Name Description
index

setAddButtonText Method

Declaration

setAddButtonText(text: string): void

Parameters

Type Name Description
text

setDialogTriggerID Method

Declaration

setDialogTriggerID(ids: string): void

Parameters

Type Name Description
ids

setEnabled Method

Declaration

setEnabled(enabled: boolean): void

Parameters

Type Name Description
enabled

setFileInputCount Method

Declaration

setFileInputCount(count: number): void

Parameters

Type Name Description
count

setUploadButtonText Method

Declaration

setUploadButtonText(text: string): void

Parameters

Type Name Description
text

upload Method

Declaration

upload(): void