Skip to content

ISourceImage

Defined in: core/source/iimage.ts:7

getValue(): Promise<string | XML>

Defined in: core/source/iimage.ts:37

return: Promise

Gets the URL path of the image file used as a source

source.getValue().then(function(value) {
// Do something with the value
});

Promise<string | XML>


isSourceAvailable(): Promise<boolean>

Defined in: core/source/iimage.ts:21

return: Promise

Check if file used as source is available

item.isSourceAvailable().then(function(isAvail) {
// The rest of your code here
});

Promise<boolean>


setValue(value): Promise<any>

Defined in: core/source/iimage.ts:56

param: (value: string)

return: Promise<ISourceImage>

Set the image file to be used as source

source.setValue('C:\\SomeFolder\\SomeFile.png')
.then(function(source) {
// Promise resolves with same Source instance
});

string

Promise<any>