BootstrapUploadControl Class

Declaration

class BootstrapUploadControl extends Control

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

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
string

getEnabled Method

Declaration

getEnabled(): boolean

Returns

Type
boolean

getFileInputCount Method

Declaration

getFileInputCount(): number

Returns

Type
number

getSelectedFiles(inputIndex) Method

Declaration

getSelectedFiles(inputIndex: number): BootstrapUploadControlFile[]

Parameters

Name Type
inputIndex number

Returns

Type
BootstrapUploadControlFile[]

getText(index) Method

Declaration

getText(index: number): string

Parameters

Name Type
index number

Returns

Type
string

getUploadButtonText Method

Declaration

getUploadButtonText(): string

Returns

Type
string

off<K> Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

on<K>(eventName, callback) Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

once<K>(eventName, callback) Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

removeFileFromSelection(file) Method

Declaration

removeFileFromSelection(file: BootstrapUploadControlFile): void

Parameters

Name Type
file BootstrapUploadControlFile

removeFileFromSelection(fileIndex) Method

Declaration

removeFileFromSelection(fileIndex: number): void

Parameters

Name Type
fileIndex number

removeFileInput(index) Method

Declaration

removeFileInput(index: number): void

Parameters

Name Type
index number

setAddButtonText(text) Method

Declaration

setAddButtonText(text: string): void

Parameters

Name Type
text string

setDialogTriggerID(ids) Method

Declaration

setDialogTriggerID(ids: string): void

Parameters

Name Type
ids string

setEnabled(enabled) Method

Declaration

setEnabled(enabled: boolean): void

Parameters

Name Type
enabled boolean

setFileInputCount(count) Method

Declaration

setFileInputCount(count: number): void

Parameters

Name Type
count number

setUploadButtonText(text) Method

Declaration

setUploadButtonText(text: string): void

Parameters

Name Type
text string

upload Method

Declaration

upload(): void