BootstrapBinaryImage Class

Declaration

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

clear(): void

getUploadedFileName Method

Declaration

getUploadedFileName(): string

Returns

Type
string

getValue Method

Declaration

getValue(): any

Returns

Type
any

off<K> Method

Declaration

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

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

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

performCallback(data: any): Promise<void>

Parameters

Name Type
data any

Returns

Type
Promise<void>

performCallback(data, onSuccess) Method

Declaration

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

Parameters

Name Type
data any
onSuccess () => void

setSize(width, height) Method

Declaration

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

Parameters

Name Type
width number
height number

setValue(value) Method

Declaration

setValue(value: any): void

Parameters

Name Type
value any