Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
@Component({
imports: [Designer, Viewer],
template: `
@if (isViewer) {
<sti-viewer [report]="report" [options]="viewerOptions"
(onDesignReport)="onDesignReport($event)"></sti-viewer>
} @else {
<sti-designer [(report)]="report" [options]="designerOptions"
(onExit)="onExitDesigner()"></sti-designer>
}`
})
export class WorkingWithOnDesignAndOnExitEvents {
isViewer = true;
onDesignReport(a) { this.isViewer = false; }
async onExitDesigner() { await this.report.renderAsync2(); this.isViewer = true; }
}onDesignReport — the viewer's Design button; switch the flag to show the designer.onExit — the designer's Exit menu; re-render the report and switch back to the viewer.