@openfin/core 34.78.20 → 34.78.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/mock-alpha.d.ts +991 -2
- package/out/mock-beta.d.ts +991 -2
- package/out/mock-public.d.ts +991 -2
- package/out/mock.d.ts +991 -2
- package/out/mock.js +19 -0
- package/package.json +1 -1
package/out/mock.js
CHANGED
|
@@ -12852,6 +12852,25 @@ class Layout extends base_1$6.Base {
|
|
|
12852
12852
|
target: this.identity
|
|
12853
12853
|
});
|
|
12854
12854
|
}
|
|
12855
|
+
/**
|
|
12856
|
+
* Retrieves the attached views in current window layout.
|
|
12857
|
+
*
|
|
12858
|
+
* @example
|
|
12859
|
+
* ```js
|
|
12860
|
+
* const layout = fin.Platform.Layout.getCurrentSync();
|
|
12861
|
+
* const views = await layout.getCurrentViews();
|
|
12862
|
+
* ```
|
|
12863
|
+
*/
|
|
12864
|
+
async getCurrentViews() {
|
|
12865
|
+
this.wire.sendAction('layout-get-views').catch((e) => {
|
|
12866
|
+
// don't expose
|
|
12867
|
+
});
|
|
12868
|
+
const client = await this.platform.getClient();
|
|
12869
|
+
const viewIdentities = await client.dispatch('get-layout-views', {
|
|
12870
|
+
target: this.identity
|
|
12871
|
+
});
|
|
12872
|
+
return viewIdentities.map((identity) => this.fin.View.wrapSync(identity));
|
|
12873
|
+
}
|
|
12855
12874
|
/**
|
|
12856
12875
|
* Retrieves the top level content item of the layout.
|
|
12857
12876
|
*
|