【问题标题】:Angular's UI-Grid in RTL Mode displays data in wrong order opposite to the order of columnDefs [closed]RTL模式下的Angular UI-Grid以与columnDefs顺序相反的错误顺序显示数据[关闭]
【发布时间】:2019-12-16 17:45:26
【问题描述】:

我在 _Layout.cshtml 中有一个 css,它将所有 ui 控件分配给 rtl 方向,如下所示:

            * {
            direction: rtl;
        }

我正在使用 Angulars UI-Grid,在 RTL 本地化中,columnDefs 出现在正确的方向,但是,相关数据的出现顺序与 columnDefs 的顺序相反,如附图 [Reversed-RTL][1] 中所述

请告知,如何更改 RTL 本地化中的数据顺序以匹配 columnDefs 的顺序。 注意:在 LTR 本地化 UI-Grid 中以正确的顺序显示 columnDefs 和数据。

【问题讨论】:

    标签: javascript angularjs angular angular-ui-grid right-to-left


    【解决方案1】:

    显然,必须将 dir="rtl" 显式分配给元素内的 ui-grid,我认为 _Layout.cshtml 中的 *{direction=rtl;} 被 bu ui-grid css 覆盖。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-06
      • 2021-08-14
      • 2016-02-18
      • 2016-06-06
      相关资源
      最近更新 更多