Skip to main content

BootstrapBinaryImage Class

#Declaration

TypeScript
class BootstrapBinaryImage extends BootstrapClientEdit

#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
BootstrapClientEdit
BootstrapBinaryImage

#Methods

#clear Method

#Declaration

TypeScript
clear(): void

#getUploadedFileName Method

#Declaration

TypeScript
getUploadedFileName(): string

#Returns

Type
string

#getValue Method

#Declaration

TypeScript
getValue(): any

#Returns

Type
any

#off<K> Method

#Declaration

TypeScript
off<K extends keyof BootstrapBinaryImageEventMap>(
    eventName?: K,
    callback?: (this: BootstrapBinaryImage,
    args?: BootstrapBinaryImageEventMap[K]) => void
): this

#Parameters

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

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#on<K>(eventName, callback) Method

#Declaration

TypeScript
on<K extends keyof BootstrapBinaryImageEventMap>(
    eventName: K,
    callback: (this: BootstrapBinaryImage,
    args?: BootstrapBinaryImageEventMap[K]) => void
): this

#Parameters

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

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#once<K>(eventName, callback) Method

#Declaration

TypeScript
once<K extends keyof BootstrapBinaryImageEventMap>(
    eventName: K,
    callback: (this: BootstrapBinaryImage,
    args?: BootstrapBinaryImageEventMap[K]) => void
): this

#Parameters

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

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#performCallback(data) Method

#Declaration

TypeScript
performCallback(
    data: any
): Promise<void>

#Parameters

Name Type
data any

#Returns

Type
Promise<void>

#performCallback(data, onSuccess) Method

#Declaration

TypeScript
performCallback(
    data: any,
    onSuccess: () => void
): void

#Parameters

Name Type
data any
onSuccess () => void

#setSize(width, height) Method

#Declaration

TypeScript
setSize(
    width: number,
    height: number
): void

#Parameters

Name Type
width number
height number

#setValue(value) Method

#Declaration

TypeScript
setValue(
    value: any
): void

#Parameters

Name Type
value any