Table of Contents

@talentsoft-opensource/integration-widget-contract > "widget-contract-myts" > MyTSHostService

Interface: MyTSHostService

Hierarchy

MyTSHostService

Index

Properties


Properties

downloadExternalResource

● downloadExternalResource: function

Defined in widget-contract-myts.ts:98

Type declaration

▸(options: RequestOptions): void

Parameters:

Name Type
options RequestOptions

Returns: void


getPreloadedResources

● getPreloadedResources: function

Defined in widget-contract-myts.ts:93

Type declaration

▸(): Record<string, string>

Returns: Record<string, string>


loadData

● loadData: function

Defined in widget-contract-myts.ts:44

Type declaration

▸(): Promise<object[]>

Returns: Promise<object[]>


openUrlInCurrentTab

● openUrlInCurrentTab: function

Defined in widget-contract-myts.ts:60

Type declaration

▸(url: string): void

Parameters:

Name Type
url string

Returns: void


openUrlInNewTab

● openUrlInNewTab: function

Defined in widget-contract-myts.ts:56

Type declaration

▸(url: string): void

Parameters:

Name Type
url string

Returns: void


raiseError

● raiseError: function

Defined in widget-contract-myts.ts:67

Type declaration

▸(reason: string, code: ErrorCode, error: Error): void

Parameters:

Name Type
reason string
code ErrorCode
Optional error Error

Returns: void


requestExternalResource

● requestExternalResource: function

Defined in widget-contract-myts.ts:71

Type declaration

▸(options: RequestOptions): Promise<HttpResponse>

Parameters:

Name Type
options RequestOptions

Returns: Promise<HttpResponse>


requestInternalResource

● requestInternalResource: function

Defined in widget-contract-myts.ts:75

Type declaration

▸(options: RequestOptions): Promise<HttpResponse>

Parameters:

Name Type
options RequestOptions

Returns: Promise<HttpResponse>


requestInternalResourceAsArrayBuffer

● requestInternalResourceAsArrayBuffer: function

Defined in widget-contract-myts.ts:79

Type declaration

▸(options: RequestOptions): Promise<GenericHttpResponse<ArrayBuffer>>

Parameters:

Name Type
options RequestOptions

Returns: Promise<GenericHttpResponse<ArrayBuffer>>


setDataIsLoaded

● setDataIsLoaded: function

Defined in widget-contract-myts.ts:52

Type declaration

▸(): void

Returns: void


setDataIsLoading

● setDataIsLoading: function

Defined in widget-contract-myts.ts:48

Type declaration

▸(): void

Returns: void


setHeaderActionConfiguration

● setHeaderActionConfiguration: function

Defined in widget-contract-myts.ts:83

Type declaration

▸(configuration: HeaderActionConfiguration): void

Parameters:

Name Type
configuration HeaderActionConfiguration

Returns: void


trackEvent

● trackEvent: function

Defined in widget-contract-myts.ts:103

Type declaration

▸(trackEventOptions: TrackEventOptions): void

Parameters:

Name Type
trackEventOptions TrackEventOptions

Returns: void


widgetIsEnlarged

● widgetIsEnlarged: function

Defined in widget-contract-myts.ts:87

Type declaration

▸(): boolean

Returns: boolean