如何限制在 YUI 中仅在页眉或页脚中显示分页器?

发布于 2024-08-02 00:08:19 字数 69 浏览 3 评论 0原文

如何限制在 YUI 中仅在页眉或页脚中显示分页器而不使用任何额外的 div 标签? 默认情况下,它显示在表格的顶部和底部。

How to restrict displaying paginator only in Header or Footer in YUI with out using any extra div tag? By default it is being displayed both at the top and bottom of the table.

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

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

发布评论

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

评论(1

救星 2024-08-09 00:08:19

您可以为分页器指定容器配置。 这需要您在 DOM 中拥有一个用于数据表的容器和一个用于分页器的容器。

或者,为分页器容器生成的 DOM 是唯一标识的,因此您可以使用 CSS 隐藏您不希望看到的任何一个 ala display:none。 使用 FireBug 或您选择的浏览器中的检查器来查看您想要定位的 id/class。

You can specify the containers config for your Paginator. This would require that you have a container in the DOM for the DataTable and one for the Paginator.

Alternately, the generated DOM for the paginator containers is uniquely id'd, so you can just use CSS to hide whichever one you don't want to see ala display:none. Use FireBug or the inspector in your browser of choice to see the id/class that you want to target.

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