Jquery Flexigrid 文本对齐

发布于 2024-08-02 00:09:43 字数 204 浏览 2 评论 0原文

的简单解决方案(示例 1)

使用 Flexigrid http://www.flexigrid.info/

我 我试图做的是将其中一列中的文本向右对齐。 有没有办法在不连接到 JSON 文件的情况下执行此操作(示例 3)?

Im using simple solution (example 1) of Flexigrid

http://www.flexigrid.info/

What I'm trying to do is to align text in one of the columns to the right.
Is there a way to do this without connecting to a JSON file (example 3)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自由如风 2024-08-09 00:09:43

使用 colModel 并将该列设置为对齐:'right'。 查看您链接的语法页面上的最后一个示例。

 colModel: [ 
         { display: 'Col1', name: 'Col1' },
         ...
         { display: 'Col4',  name: 'Col4', align: 'right' }
 ]

Use the colModel and set that column to have align: 'right'. Take a look at the last example on the page you linked for the syntax.

 colModel: [ 
         { display: 'Col1', name: 'Col1' },
         ...
         { display: 'Col4',  name: 'Col4', align: 'right' }
 ]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文