Ant Design Table Scroll Y
Onscroll document getelementbyid headerdiv scrollleft this scrollleft share improve this answer follow edited jul 30 18 at 21 55.
Ant design table scroll y. Hidden div ex3 overflow y. Depending on the type of table you use datatables or a simple static table there are two different solutions. 100 ant spin nested loading ant spin container ant table ant table scroll ant table body inner ant table fixed left ant table content height. For the tables with at huge amount of data you can use scroll functionality as an alternative for pagination.
For sorting data locally. Use sorter to make a column sortable sorter can be a function of the type function a b. In default vertical scroll bar is enabled after we have entered the number of data which is to maximize size in the vertical mode. To enable y scrolling simply set the scrolly.
Another div for containing the table records and overflow y scroll. The overflow y property specifies whether to clip the content add a scroll bar or display overflow content of a block level element when it overflows at the top and bottom edges. Use the overflow x property to determine clipping at. But in horizontal mode after entered the data in paragraph format and are not.
In scrollbar in html table is one of the features to scroll the data from both horizontal and vertical formats. Auto div ex4 overflow y. Scroll div ex2 overflow y. Scrolling functionality works vertically y axis and horizontally x axis.
Uses defaultfilteredvalue to make a column filtered by default. A table displays rows of data. Stack overflow for teams is a private secure spot for you and your coworkers to find and share information. This example shows the datatables table body scrolling in the vertical direction.
Ant table content position. And the most important thing the magical js to sync the header and table data. This can generally be seen as an alternative method to pagination for displaying a large table in a fairly small vertical area and as such pagination has been disabled here note that this is not mandatory it will work just fine with pagination enabled as well. Ant table body ant table body inner overflow y.
Try it yourself definition and usage. Answered mar 11 16 at 18 14. We will allocate the border height and width of the scroll tables.