Assigning a Dashboard to the Viewer
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.Этот пример является устаревшим, посмотрите множество других обновлённых примеров в данной категории.Dashboards.JS provides ready-made framework components, so a dashboard is shown by placing the viewer element and giving it a dashboard object.
Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
<script setup lang="ts">
import { Viewer, Stimulsoft } from 'stimulsoft-dashboards-js-vuejs/viewer';
var report = Stimulsoft.Report.StiReport.createNewDashboard();
report.loadFile('Dashboards/Christmas.mrt');
</script>
<template>
<Viewer :report="report" />
</template>