Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
(event) syntax:export class AppComponent {
loaded(): void {
console.log('Report loaded');
}
export(event: any): void {
console.log(`Export to: ${event.exportFormat}`);
}
}<stimulsoft-viewer-angular
[requestUrl]="'/Viewer/{action}'"
[action]="'InitViewer'"
[height]="'100vh'"
(loaded)="loaded()"
(export)="export($event)">
</stimulsoft-viewer-angular>(loaded) fires once the report has been rendered and is ready, and (export) fires when the user exports the report — the event object carries details such as the exportFormat. The same pattern works for other viewer events; simply bind the corresponding output.ViewerEvent action registered during initialization:[HttpPost]
public IActionResult ViewerEvent()
{
return StiAngularViewer.ViewerEventResult(this);
}