【问题标题】:2 smart tables on 1 page, pagination changes both tables1 页上有 2 个智能表,分页会更改两个表
【发布时间】:2017-06-13 17:38:21
【问题描述】:

我在一页上有 2 个智能表,每个表在 tfoot 内都有分页。实际的st-pagination很简单:

  <st-pagination st-items-by-page="15" st-displayed-pages="6"></st-pagination>

问题是当我在其中一个上更改页面时,两个表都会更改页面。有没有办法基本上将每个表指向自己的分页,以便在一个分页上更改页面只会更改 1 个表的页面?

【问题讨论】:

    标签: javascript angularjs pagination smart-table


    【解决方案1】:

    原来是一个愚蠢的错误——我需要在 st-table 中绑定不同的集合。 即

    表 1:

    <table st-table="collection1" st-safe-src="srcTable">
    

    表 2:

    <table st-table="collection2" st-safe-src="srcTable">
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-23
      • 2020-09-10
      • 1970-01-01
      • 1970-01-01
      • 2015-09-28
      • 2012-08-15
      • 2018-03-24
      • 1970-01-01
      相关资源
      最近更新 更多