@c8y/apps
Version:
Cumulocity IoT applications
36 lines (33 loc) • 907 B
HTML
<c8y-title>Service dashboard</c8y-title>
<div class="card">
<div class="card-block">
<p>
You can define your own service views. To do that just declare your component with the
<code>hookRoute</code> hook using the <code>ViewContext.Service</code>context. For example,
you can use a dashboard component to allow for further customization of your service details
view:
</p>
<pre ngNonBindable>
@NgModule({
...
providers: [
...
hookRoute({
path: 'info',
context: ViewContext.Service,
component: ServiceDashboardComponent,
label: 'Service info',
priority: 900,
icon: 'rocket'
})
]
})
</pre>
</div>
</div>
<c8y-context-dashboard
[name]="name"
[defaultWidgets]="defaultWidgets"
[context]="context"
[canDelete]="false"
></c8y-context-dashboard>