mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-04 13:27:12 +00:00
14 lines
760 B
Handlebars
14 lines
760 B
Handlebars
<div class="fleetbase-dashboard-grid" ...attributes>
|
|
<GridStack @options={{this.gridOptions}} @onChange={{this.onChangeGrid}}>
|
|
{{#each @dashboard.widgets as |widget|}}
|
|
<GridStackItem id={{widget.id}} @options={{spread-widget-options (hash id=widget.id options=widget.grid_options)}} class="relative">
|
|
{{component widget.component options=widget.options}}
|
|
{{#if @isEdit}}
|
|
<div class="absolute top-2 right-2">
|
|
<Button @type="default" @icon="trash" @helpText={{"Remove widget from the dashboard"}} @onClick={{fn this.removeWidget widget}} />
|
|
</div>
|
|
{{/if}}
|
|
</GridStackItem>
|
|
{{/each}}
|
|
</GridStack>
|
|
</div> |