2018-10-21 17:17:21 -04:00
|
|
|
<my-widget-config [widgetComponent]="this">
|
|
|
|
<ng-template #widgetParamsTemplate let-widget="widget">
|
|
|
|
<label class="label-block">
|
2020-10-23 07:30:20 -04:00
|
|
|
{{'Grafana URL' | translate}}
|
|
|
|
<span class="text-muted">{{'To get a URL, go to Grafana and click \'share\' on a graph.' | translate}}</span>
|
2018-10-21 17:17:21 -04:00
|
|
|
<input type="text" class="form-control"
|
|
|
|
placeholder="https://example.com/grafana/dashboard/db/example?orgId=1&panelId=1&fullscreen"
|
2019-03-24 19:27:45 -04:00
|
|
|
[(ngModel)]="widget.dimension.newData.url" name="widget-url-{{widget.id}}"
|
2018-10-21 17:17:21 -04:00
|
|
|
[disabled]="isUpdating"/>
|
|
|
|
</label>
|
|
|
|
<label class="label-block">
|
2020-10-23 07:30:20 -04:00
|
|
|
{{'Widget Name' | translate}}
|
2018-10-21 17:17:21 -04:00
|
|
|
<input type="text" class="form-control"
|
|
|
|
placeholder="{{ defaultName }}"
|
|
|
|
[(ngModel)]="widget.dimension.newName" name="widget-name-{{widget.id}}"
|
|
|
|
[disabled]="isUpdating"/>
|
|
|
|
</label>
|
|
|
|
</ng-template>
|
2020-10-23 07:30:20 -04:00
|
|
|
</my-widget-config>
|