UNPKG

@plotinus/matrix-package-observable-coordinator

Version:

Observable coordinator pattern components using IntrospectableBaseCommunicationComponent and proper presentation architecture

29 lines (28 loc) 1.1 kB
import { BaseCommunicationComponent } from '@matrix/framework'; /** * The MatrixDefinitionComponent is the "outer environment" container that can * instantiate apps or other components. It can hold environment-level attributes * like 'rootTopic' and re-emit events from child apps if needed. */ export declare class MatrixDefinitionComponent extends BaseCommunicationComponent { static dslTag: string; constructor(id: string, eventBus: any); onInit(): void; startExecution(): void; /** * Example method: handle event from child <app> * if the <app> has emits="SystemCompleted:direct" and onSystemCompleted="handleAppSystemCompleted" */ handleAppSystemCompleted(evt: any): void; /** * Handle SystemCompleted event at the matrix level * This is referenced in matrix.html with onSystemCompleted="handleMatrixSystemCompleted" */ handleMatrixSystemCompleted(evt: any): void; /** * Example method: handle another event type */ handleAnother(evt: any): void; private getAttribute; protected getDebugState(): any; }