@openfin/node-adapter 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/node-adapter-alpha.d.ts +991 -2
- package/out/node-adapter-beta.d.ts +991 -2
- package/out/node-adapter-public.d.ts +991 -2
- package/out/node-adapter.d.ts +991 -2
- package/out/node-adapter.js +19 -0
- package/package.json +1 -1
package/out/node-adapter.js
CHANGED
@@ -12643,6 +12643,25 @@ class Layout extends base_1$6.Base {
|
|
12643
12643
|
target: this.identity
|
12644
12644
|
});
|
12645
12645
|
}
|
12646
|
+
/**
|
12647
|
+
* Retrieves the attached views in current window layout.
|
12648
|
+
*
|
12649
|
+
* @example
|
12650
|
+
* ```js
|
12651
|
+
* const layout = fin.Platform.Layout.getCurrentSync();
|
12652
|
+
* const views = await layout.getCurrentViews();
|
12653
|
+
* ```
|
12654
|
+
*/
|
12655
|
+
async getCurrentViews() {
|
12656
|
+
this.wire.sendAction('layout-get-views').catch((e) => {
|
12657
|
+
// don't expose
|
12658
|
+
});
|
12659
|
+
const client = await this.platform.getClient();
|
12660
|
+
const viewIdentities = await client.dispatch('get-layout-views', {
|
12661
|
+
target: this.identity
|
12662
|
+
});
|
12663
|
+
return viewIdentities.map((identity) => this.fin.View.wrapSync(identity));
|
12664
|
+
}
|
12646
12665
|
/**
|
12647
12666
|
* Retrieves the top level content item of the layout.
|
12648
12667
|
*
|