Grafana:如何在Grafana中使用secret-form-field指令?

我正在尝试使用指令并将其传递给label =“ My Label”,但是我的标签未显示在UI中,而是获得了默认的“ Password”作为我的标签。

我认为在以下文件第88行中传递“标签”作为选项将解决此问题? https://github.com/grafana/grafana/blob/c9b11bfc7ae1ce89d737c938993db5fa0e421fdb/public/app/core/angular_wrappers.ts

我在github上打开了一张与此有关的票,但我不明白答案。

https://github.com/grafana/grafana/issues/20258

他们是否建议我使用react编写我的配置编辑器,而不是尝试将“标签”传递给secret-form-field指令?

aukle 回答:Grafana:如何在Grafana中使用secret-form-field指令?

传递道具的任何组件

<ng-container>
  <app-component *ngFor="let item of itemsToLoopOver" [input]="item.text"></app-component>
</ng-container>

component1.ts

  @Input() private textToShow: string;

component1.html

<div>
  {{ textToShow }}
</div>
本文链接:https://www.f2er.com/3135758.html

大家都在问