Skip to content

Interface: ImageOptions ​

Defined in: types/desktop-engine.d.ts:1251

Image constructor options. Each is applied as if it were assigned to the Image property of the same name right after new: a value the property doesn't take (e.g. size: 5, src: '') is ignored and the default stays

Extends ​

Properties ​

events? ​

ts
optional events?: string[];

Defined in: types/desktop-engine.d.ts:842

Event names to enable on the native side up front (JS still needs a callback to receive them)

Inherited from ​

ComponentOptions.events


position? ​

ts
optional position?: ImagePosition;

Defined in: types/desktop-engine.d.ts:1257

Alignment


size? ​

ts
optional size?: ImageSize;

Defined in: types/desktop-engine.d.ts:1255

Scaling mode


src? ​

ts
optional src?: string;

Defined in: types/desktop-engine.d.ts:1253

Image source: an http(s) URL or a path inside the package or sandbox


style? ​

ts
optional style?: StyleProperties;

Defined in: types/desktop-engine.d.ts:840

Initial style

Inherited from ​

ComponentOptions.style

The SDK is released under the Apache License 2.0