new TableView(options)
Table view with virtualization support
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | the constructor options Properties
|
Extends
- Backbone.View
Methods
-
_hookUpStickyHeader()
-
This is simulating
{ position: sticky }, but it's still far from perfect.- For window viewport
- Use
{ postion: fixed } - Adjust the width and the horizontal location on the fly
- Put an dummy filler into the content flow to take the place of header
- Use
The issues are
- If the subviews in header changes, they have to notify the grid manually to update the filler's size
- The header doesn't follow the table tightly on horizontal scroll, as
the
scrollevent is triggered after repaint for most browsers
- For element viewport
- Use
{ position: relative } - Adjust the vertical location on the fly
- Use
The issues are
- The header doesn't follow the table tightly on vertical scroll, as
the
scrollevent is triggered after repaint for most browsers. The sticky header could be very jumpy on IE and Edge.
We wish all browsers support
{ position: sticky }in a not too far future. So that we can have a perfect solution with native support. - For window viewport