BootstrapUploadControl Class

Declaration

export class BootstrapUploadControl extends Control

Inheritance

Control
BootstrapUploadControl

Properties

name Property

Declaration

readonly name: string

Property Value

Type Description
string

Methods

addFileInput Method

Declaration

addFileInput(): void

adjustControl Method

Declaration

adjustControl(): void

cancel Method

Declaration

cancel(): void

clearText Method

Declaration

clearText(): void

getAddButtonText Method

Declaration

getAddButtonText(): string

Returns

Type Description
string

getEnabled Method

Declaration

getEnabled(): boolean

Returns

Type Description
boolean

getFileInputCount Method

Declaration

getFileInputCount(): number

Returns

Type Description
number

getHeight Method

Declaration

getHeight(): number

Returns

Type Description
number

getMainElement Method

Declaration

getMainElement(): any

Returns

Type Description
any

getParentControl Method

Declaration

getParentControl(): any

Returns

Type Description
any

getSelectedFiles Method

Declaration

getSelectedFiles(inputIndex: number): BootstrapUploadControlFile[]

Parameters

Type Name Description
number inputIndex

Returns

Type Description
BootstrapUploadControlFile[]

getText Method

Declaration

getText(index: number): string

Parameters

Type Name Description
number index

Returns

Type Description
string

getUploadButtonText Method

Declaration

getUploadButtonText(): string

Returns

Type Description
string

getVisible Method

Declaration

getVisible(): boolean

Returns

Type Description
boolean

getWidth Method

Declaration

getWidth(): number

Returns

Type Description
number

inCallback Method

Declaration

inCallback(): boolean

Returns

Type Description
boolean

off Method

Declaration

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

Parameters

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

Returns

Type Description
this

on Method

Declaration

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

Parameters

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

Returns

Type Description
this

once Method

Declaration

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

Parameters

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

Returns

Type Description
this

removeFileFromSelection Method

Declaration

removeFileFromSelection(file: BootstrapUploadControlFile): void

Parameters

Type Name Description
BootstrapUploadControlFile file

removeFileFromSelection Method

Declaration

removeFileFromSelection(fileIndex: number): void

Parameters

Type Name Description
number fileIndex

removeFileInput Method

Declaration

removeFileInput(index: number): void

Parameters

Type Name Description
number index

sendMessageToAssistiveTechnology Method

Declaration

sendMessageToAssistiveTechnology(message: string): void

Parameters

Type Name Description
string message

setAddButtonText Method

Declaration

setAddButtonText(text: string): void

Parameters

Type Name Description
string text

setDialogTriggerID Method

Declaration

setDialogTriggerID(ids: string): void

Parameters

Type Name Description
string ids

setEnabled Method

Declaration

setEnabled(enabled: boolean): void

Parameters

Type Name Description
boolean enabled

setFileInputCount Method

Declaration

setFileInputCount(count: number): void

Parameters

Type Name Description
number count

setHeight Method

Declaration

setHeight(height: number): void

Parameters

Type Name Description
number height

setUploadButtonText Method

Declaration

setUploadButtonText(text: string): void

Parameters

Type Name Description
string text

setVisible Method

Declaration

setVisible(visible: boolean): void

Parameters

Type Name Description
boolean visible

setWidth Method

Declaration

setWidth(width: number): void

Parameters

Type Name Description
number width

upload Method

Declaration

upload(): void