40 lines
1.7 KiB
HTML
40 lines
1.7 KiB
HTML
|
|
<!--
|
||
|
|
|
||
|
|
Copyright © 2016-2024 The Thingsboard Authors
|
||
|
|
|
||
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
|
you may not use this file except in compliance with the License.
|
||
|
|
You may obtain a copy of the License at
|
||
|
|
|
||
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
|
||
|
|
Unless required by applicable law or agreed to in writing, software
|
||
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
|
See the License for the specific language governing permissions and
|
||
|
|
limitations under the License.
|
||
|
|
|
||
|
|
-->
|
||
|
|
<div [formGroup]="moduleRowFormGroup" class="tb-form-table-row tb-js-func-module-row">
|
||
|
|
<mat-form-field class="tb-inline-field tb-alias-field" appearance="outline" subscriptSizing="dynamic">
|
||
|
|
<input required matInput formControlName="alias" placeholder="{{ 'widget-config.set' | translate }}">
|
||
|
|
</mat-form-field>
|
||
|
|
<tb-resource-autocomplete class="tb-module-link-field"
|
||
|
|
formControlName="moduleLink"
|
||
|
|
inlineField
|
||
|
|
hideRequiredMarker required
|
||
|
|
[subType]="ResourceSubType.MODULE"
|
||
|
|
[allowAutocomplete]="true"
|
||
|
|
placeholder="{{ 'widget-config.set' | translate }}">
|
||
|
|
</tb-resource-autocomplete>
|
||
|
|
<div class="tb-form-table-row-cell-buttons">
|
||
|
|
<button type="button"
|
||
|
|
mat-icon-button
|
||
|
|
(click)="moduleRemoved.emit()"
|
||
|
|
matTooltip="{{ 'js-func.remove-module' | translate }}"
|
||
|
|
matTooltipPosition="above">
|
||
|
|
<mat-icon>delete</mat-icon>
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
</div>
|