Clarity: Is there a recommended way to make clr-datagrid take up all available vertical space?

前端 未结 1 1281
猫巷女王i
猫巷女王i 2021-01-14 02:21

I am trying to make my take up all vertical space even if there are no rows in the table yet. Is clr-datagrid customizable to do so? It seems like I have to manually overri

1条回答
  •  孤街浪徒
    2021-01-14 02:33

    The Clarity datagrid supports any fixed height you want on the datagrid element itself. If the height is too large for the number of displayed rows, the body will expand with empty space. If the height is too small for the number of displayed rows, the body will scroll while the header and footer remain in place.

    So in your case, it's as simple as putting height: 100% for the datagrid in your CSS. That's all you need to do. See https://plnkr.co/edit/eZqaic8CS6CFHVcGxAnH?p=preview for a working example.

    0 讨论(0)
提交回复
热议问题