BootstrapUploadControl Class
Declaration
class BootstrapUploadControl extends Control
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.
Methods
addFileInput(): void
cancel Method
Declaration
cancel(): void
clearText Method
Declaration
clearText(): void
getAddButtonText Method
Declaration
getAddButtonText(): string
Returns
getEnabled Method
Declaration
getEnabled(): boolean
Returns
getFileInputCount(): number
getSelectedFiles(
inputIndex: number
): BootstrapUploadControlFile[]
Name |
Type |
inputIndex |
number |
getText(index) Method
Declaration
getText(
index: number
): string
Parameters
Returns
getUploadButtonText Method
Declaration
getUploadButtonText(): string
Returns
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
Returns
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
Returns
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
Returns
removeFileFromSelection(file) Method
Declaration
removeFileFromSelection(
file: BootstrapUploadControlFile
): void
Parameters
removeFileFromSelection(fileIndex) Method
Declaration
removeFileFromSelection(
fileIndex: number
): void
Parameters
Name |
Type |
fileIndex |
number |
removeFileInput(
index: number
): void
setAddButtonText(text) Method
Declaration
setAddButtonText(
text: string
): void
Parameters
setDialogTriggerID(ids) Method
Declaration
setDialogTriggerID(
ids: string
): void
Parameters
setEnabled(enabled) Method
Declaration
setEnabled(
enabled: boolean
): void
Parameters
Name |
Type |
enabled |
boolean |
setFileInputCount(
count: number
): void
setUploadButtonText(text) Method
Declaration
setUploadButtonText(
text: string
): void
Parameters
upload Method
Declaration
upload(): void