ISourceImage
Defined in: core/source/iimage.ts:7
Methods
Section titled “Methods”getValue()
Section titled “getValue()”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});Returns
Section titled “Returns”Promise<string | XML>
isSourceAvailable()
Section titled “isSourceAvailable()”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});Returns
Section titled “Returns”Promise<boolean>
setValue()
Section titled “setValue()”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});Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<any>