[在使用ng-dygraphs时如何从底层图谱中获得isZoom?

问题描述 投票:0回答:1

Ng-dygraphs是一个使用Dygraphs库并准备用于Angular使用的库。 Dygraphs具有一个称为isZoomed的属性。使用NG-dygraphs时如何访问此属性?

javascript angular frontend dygraphs
1个回答
0
投票

尝试一下:

@ViewChild('ngDygraphs') ngDygraphs : ElementRef;


<ng-dygraphs
  #ngDygraphs
  [data]="data"
  [options]="options">
</ng-dygraphs>

并为ngDygraphs设置console.log(this.ngDygraphs)并获取其属性。将会有isZoomed属性

© www.soinside.com 2019 - 2024. All rights reserved.