@jsvision/ui / ChromeHostAware
Interface: ChromeHostAware
Defined in: ui/src/router/types.ts:55
Implemented by an application body (e.g. a router) that wants to drive the shared chrome. When such a body is passed as createApplication({ content }), the application hands it a ChromeHost once the menu/status bars are wired. A body that does not implement this (a plain Desktop) is left untouched.
Example
ts
import { Group } from '@jsvision/ui';
class Router extends Group {
private chrome: ChromeHost | null = null;
attachChromeHost(host: ChromeHost): void { this.chrome = host; }
}Methods
attachChromeHost()
attachChromeHost(
host):void
Defined in: ui/src/router/types.ts:62
Receive the application's chrome seam. Called once by createApplication after the menu/status bars are attached.
Parameters
host
The chrome seam that drives the shared menu bar and status line.
Returns
void