The requested page is not available for the requested platform. You are viewing the content for Default platform.

BootstrapUploadControl Class

Declaration

export 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 Description
string

getEnabled Method

Declaration

getEnabled(): boolean

Returns

Type Description
boolean

getFileInputCount Method

Declaration

getFileInputCount(): number

Returns

Type Description
number

getSelectedFiles Method

Declaration

getSelectedFiles(inputIndex: number): array[BootstrapUploadControlFile]

Parameters

Name Type Description
inputIndex

Returns

Type Description
array[BootstrapUploadControlFile]

getText Method

Declaration

getText(index: number): string

Parameters

Name Type Description
index

Returns

Type Description
string

getUploadButtonText Method

Declaration

getUploadButtonText(): string

Returns

Type Description
string

off Method

Declaration

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

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

on Method

Declaration

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

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

once Method

Declaration

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

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

removeFileFromSelection Method

Declaration

removeFileFromSelection(fileIndex: number): void

Parameters

Name Type Description
fileIndex

removeFileInput Method

Declaration

removeFileInput(index: number): void

Parameters

Name Type Description
index

setAddButtonText Method

Declaration

setAddButtonText(text: string): void

Parameters

Name Type Description
text

setDialogTriggerID Method

Declaration

setDialogTriggerID(ids: string): void

Parameters

Name Type Description
ids

setEnabled Method

Declaration

setEnabled(enabled: boolean): void

Parameters

Name Type Description
enabled

setFileInputCount Method

Declaration

setFileInputCount(count: number): void

Parameters

Name Type Description
count

setUploadButtonText Method

Declaration

setUploadButtonText(text: string): void

Parameters

Name Type Description
text

upload Method

Declaration

upload(): void