javascript - 使用 ng-dygraphs 时如何从底层 dygraphs 中获取 isZoomed?
问题描述
Ng-dygraphs 是一个使用 Dygraphs 库并为 Angular 使用做好准备的库。Dygraphs 有一个名为 isZoomed 的属性。使用 NG-dygraphs 时如何访问此属性?
解决方案
尝试这个:
@ViewChild('ngDygraphs') ngDygraphs : ElementRef;
<ng-dygraphs
#ngDygraphs
[data]="data"
[options]="options">
</ng-dygraphs>
并console.log(this.ngDygraphs)
为 ngDygraphs 制作并获取其属性。会有isZoomed
财产
推荐阅读
- python - 如何在 Python 3 中使 vlc 模块的控制台输出静音
- bluetooth-lowenergy - 使用 targetSdkVersion29,无法发现 BLE 设备
- c# - 如果已经存在,我需要比较文本框值和表值,然后在 Asp.net MVC 核心中显示警报
- android - 使用 RoleManager API 更改默认拨号程序的系统对话框不会第二次出现
- c++ - 用 sublime text 编译 c++ 文件
- javascript - 如何更新属于浏览器本地存储的特定 json 数据对象
- jquery - 无法使用 Javascript 打开 Bootstrap 下拉菜单
- html - 即使指定了索引,XPath $x() 函数也会返回数组
- swiper - 在 Swiper 的垂直模式下设置正确的高度
- c# - 制作索引 0 返回空白字符串的枚举