【问题标题】:Vue-tabilator: How do I access the tabulator functions?Vue-tabilator:如何访问制表功能?
【发布时间】:2020-02-14 01:30:57
【问题描述】:

我在 Nuxt.js 项目中使用 Tabulator。我使用 Vue-Tabulator。

如何在 Vue 的组件方法中通过制表符的函数访问?

我必须通过this.$refs.tabulator.getInstance(); 使用Tabulator 的实例吗?

【问题讨论】:

    标签: vue-component nuxt.js tabulator


    【解决方案1】:

    看看Vue Tabulator Documentation

    正如您所说,您必须获取实例,然后才能调用任何 Tabulator 函数:

    const tabulatorInstance = this.$refs.tabulator.getInstance();
    
    //clear table data
    tabulatorInstance.clearData();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-11-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-09
      • 1970-01-01
      相关资源
      最近更新 更多