Skip to main content

BootstrapUploadControl Class

#Declaration

TypeScript
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

TypeScript
addFileInput(): void

#cancel Method

#Declaration

TypeScript
cancel(): void

#clearText Method

#Declaration

TypeScript
clearText(): void

#getAddButtonText Method

#Declaration

TypeScript
getAddButtonText(): string

#Returns

Type
string

#getEnabled Method

#Declaration

TypeScript
getEnabled(): boolean

#Returns

Type
boolean

#getFileInputCount Method

#Declaration

TypeScript
getFileInputCount(): number

#Returns

Type
number

#getSelectedFiles(inputIndex) Method

#Declaration

TypeScript
getSelectedFiles(
    inputIndex: number
): BootstrapUploadControlFile[]

#Parameters

Name Type
inputIndex number

#Returns

Type
BootstrapUploadControlFile[]

#getText(index) Method

#Declaration

TypeScript
getText(
    index: number
): string

#Parameters

Name Type
index number

#Returns

Type
string

#getUploadButtonText Method

#Declaration

TypeScript
getUploadButtonText(): string

#Returns

Type
string

#off<K> Method

#Declaration

TypeScript
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

TypeScript
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

TypeScript
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

TypeScript
removeFileFromSelection(
    file: BootstrapUploadControlFile
): void

#Parameters

Name Type
file BootstrapUploadControlFile

#removeFileFromSelection(fileIndex) Method

#Declaration

TypeScript
removeFileFromSelection(
    fileIndex: number
): void

#Parameters

Name Type
fileIndex number

#removeFileInput(index) Method

#Declaration

TypeScript
removeFileInput(
    index: number
): void

#Parameters

Name Type
index number

#setAddButtonText(text) Method

#Declaration

TypeScript
setAddButtonText(
    text: string
): void

#Parameters

Name Type
text string

#setDialogTriggerID(ids) Method

#Declaration

TypeScript
setDialogTriggerID(
    ids: string
): void

#Parameters

Name Type
ids string

#setEnabled(enabled) Method

#Declaration

TypeScript
setEnabled(
    enabled: boolean
): void

#Parameters

Name Type
enabled boolean

#setFileInputCount(count) Method

#Declaration

TypeScript
setFileInputCount(
    count: number
): void

#Parameters

Name Type
count number

#setUploadButtonText(text) Method

#Declaration

TypeScript
setUploadButtonText(
    text: string
): void

#Parameters

Name Type
text string

#upload Method

#Declaration

TypeScript
upload(): void