【问题标题】:Clarity Datagrid: Is there a recommended way to disable animations when expanding a row?Clarity Datagrid:是否有推荐的方法在扩展行时禁用动画?
【发布时间】:2017-10-24 17:48:52
【问题描述】:

我正在尝试使用具有可扩展行的 Clarity 数据网格: https://vmware.github.io/clarity/documentation/datagrid/expandable-rows

虽然手动扩展行时的动画效果很好,但我有一个用例,我需要在渲染网格时扩展所有行或仅扩展其中一些行。在这种情况下,动画很烦人并导致不必要的闪烁。有推荐的禁用方法吗?

【问题讨论】:

    标签: clarity vmware-clarity


    【解决方案1】:

    使用

    预扩展行
    <clr-dg-row-detail *clrIfExpanded="true">
    

    <clr-dg-row-detail *clrIfExpanded="item.expanded">
    

    不要动画:https://plnkr.co/edit/iwrxr80RphYLn96vb2qk?p=preview

    你应该用一个例子来更新你的问题,因为根据我的 plunker,你不需要禁用动画。

    【讨论】:

      猜你喜欢
      • 2013-05-08
      • 2020-07-03
      • 1970-01-01
      • 2015-11-12
      • 1970-01-01
      • 1970-01-01
      • 2023-03-22
      • 1970-01-01
      相关资源
      最近更新 更多