@@ -19,12 +19,12 @@ queried from a natively `async` virtual data model, making `regular-table` ideal
1919for enormous or remote data sets. Use it to build Data Grids, Spreadsheets,
2020Pivot Tables, File Trees, or anytime you need:
2121
22- - Just a regular ` <table> ` .
23- - Virtually rendered for high-performance.
24- - ` async ` data model handles slow, remote, enormous, and/or distributed
25- backends.
26- - Easy to style, works with any regular CSS for ` <table> ` .
27- - Small bundle size, no dependencies.
22+ - Just a regular ` <table> ` .
23+ - Virtually rendered for high-performance.
24+ - ` async ` data model handles slow, remote, enormous, and/or distributed
25+ backends.
26+ - Easy to style, works with any regular CSS for ` <table> ` .
27+ - Small bundle size, no dependencies.
2828
2929## Examples
3030
@@ -57,13 +57,13 @@ Pivot Tables, File Trees, or anytime you need:
5757</a >
5858<br />
5959
60- - [ 2d_array.md] ( examples/2d_array.md )
61- - [ canvas_data_model.md] ( examples/canvas_data_model.md )
62- - [ file_browser.md] ( examples/file_browser.md )
63- - [ minesweeper.md] ( examples/minesweeper.md )
64- - [ react.md] ( examples/react.md )
65- - [ spreadsheet.md] ( examples/spreadsheet.md )
66- - [ two_billion_rows.md] ( examples/two_billion_rows.md )
60+ - [ 2d_array.md] ( examples/2d_array/2d_array.js )
61+ - [ canvas_data_model.md] ( examples/canvas_data_model/canvas_data_model.js )
62+ - [ file_browser.md] ( examples/file_browser/file_browser.js )
63+ - [ minesweeper.md] ( examples/minesweeper/minesweeper.js )
64+ - [ react.md] ( examples/react/react.js )
65+ - [ spreadsheet.md] ( examples/spreadsheet/spreadsheet.js )
66+ - [ two_billion_rows.md] ( examples/two_billion_rows/two_billion_rows.js )
6767
6868## Documentation
6969
@@ -74,38 +74,38 @@ documented
7474[ examples] ( https://github.com/finos/regular-table/tree/master/examples ) are also
7575available.
7676
77- - QuickStart
78-
79- - [ Installation] ( #installation )
80- - [ ` <regular-table> ` Custom Element] ( #regular-table-custom-element )
81- - [ ` .setDataListener() ` Virtual Data Model] ( #setdatalistener-virtual-data-model )
82- - [ Column and Row Headers] ( #column-and-row-headers )
83- - [ Hierarchial/Group Headers] ( #hierarchialgroup-headers )
84- - [ ` async ` Data Models] ( #async-data-models )
85- - [ ` .addStyleListener() ` and ` getMeta() ` Styling] ( #addstylelistener-and-getmeta-styling )
86- - [ ` .invalidate() ` ] ( #invalidate )
87- - [ ` .addEventListener() ` Interaction] ( #addeventlistener-interaction )
88- - [ Scrolling] ( #scrolling )
89- - [ Pivots, Filters, Sorts, and Column Expressions with ` perspective ` ] ( #pivots-filters-sorts-and-column-expressions-with-perspective )
90- - [ Development] ( #development )
91-
92- - [ API Docs] ( https://github.com/finos/regular-table/blob/master/api.md )
93-
94- - Annotated Examples
95- - [ 2d_array.md] ( examples/2d_array.md )
96- - [ canvas_data_model.md] ( examples/canvas_data_model.md )
97- - [ file_browser.md] ( examples/file_browser.md )
98- - [ minesweeper.md] ( examples/minesweeper.md )
99- - [ react.md] ( examples/react.md )
100- - [ spreadsheet.md] ( examples/spreadsheet.md )
101- - [ two_billion_rows.md] ( examples/two_billion_rows.md )
77+ - QuickStart
78+
79+ - [ Installation] ( #installation )
80+ - [ ` <regular-table> ` Custom Element] ( #regular-table-custom-element )
81+ - [ ` .setDataListener() ` Virtual Data Model] ( #setdatalistener-virtual-data-model )
82+ - [ Column and Row Headers] ( #column-and-row-headers )
83+ - [ Hierarchial/Group Headers] ( #hierarchialgroup-headers )
84+ - [ ` async ` Data Models] ( #async-data-models )
85+ - [ ` .addStyleListener() ` and ` getMeta() ` Styling] ( #addstylelistener-and-getmeta-styling )
86+ - [ ` .invalidate() ` ] ( #invalidate )
87+ - [ ` .addEventListener() ` Interaction] ( #addeventlistener-interaction )
88+ - [ Scrolling] ( #scrolling )
89+ - [ Pivots, Filters, Sorts, and Column Expressions with ` perspective ` ] ( #pivots-filters-sorts-and-column-expressions-with-perspective )
90+ - [ Development] ( #development )
91+
92+ - [ API Docs] ( https://github.com/finos/regular-table/blob/master/api.md )
93+
94+ - Annotated Examples
95+ - [ 2d_array.md] ( examples/2d_array/2d_array.js )
96+ - [ canvas_data_model.md] ( examples/canvas_data_model/canvas_data_model.js )
97+ - [ file_browser.md] ( examples/file_browser/file_browser.js )
98+ - [ minesweeper.md] ( examples/minesweeper/minesweeper.js )
99+ - [ react.md] ( examples/react/react.js )
100+ - [ spreadsheet.md] ( examples/spreadsheet/spreadsheet.js )
101+ - [ two_billion_rows.md] ( examples/two_billion_rows/two_billion_rows.js )
102102
103103## Installation
104104
105105Include via a CDN like [ JSDelivr] ( https://cdn.jsdelivr.net/npm/regular-table ) :
106106
107107``` html
108- <script src =" https://cdn.jsdelivr.net/npm/regular-table" ></script >
108+ <script type = " module " src =" https://cdn.jsdelivr.net/npm/regular-table" ></script >
109109<link
110110 rel =" stylesheet"
111111 href =" https://cdn.jsdelivr.net/npm/regular-table/dist/css/material.css"
@@ -248,10 +248,10 @@ configured via the `virtual_mode` optional argument. Note that using a
248248` <table> ` along the non-virtual axis(es), and may cause rendering performance
249249degradation.
250250
251- - "both" (default) virtualizes scrolling on both axes.
252- - "vertical" only virtualizes vertical (y) scrolling.
253- - "horizontal" only virtualizes horizontal (x) scrolling.
254- - "none" disable all scroll virtualization.
251+ - "both" (default) virtualizes scrolling on both axes.
252+ - "vertical" only virtualizes vertical (y) scrolling.
253+ - "horizontal" only virtualizes horizontal (x) scrolling.
254+ - "none" disable all scroll virtualization.
255255
256256``` javascript
257257table .setDataListener (listener, { virtual_mode: " vertical" });
@@ -383,14 +383,14 @@ field will accompany the metadata records returned by `regular-table`'s
383383Additional rendering options which can be set on the object returned by a
384384` setDataListener ` callback include:
385385
386- - ` column_header_merge_depth: number ` configures the number of rows to include
387- from ` colspan ` merging. This defaults to ` header_length - 1 ` .
388- - ` row_height: number ` configures the pixel height of a row for virtual
389- scrolling calculation. This is typically auto-detected from the DOM, but can
390- be overridden if needed.
391- - ` merge_headers: "column" | "row" | "both" | "none" ` configures whether
392- equivalent, contiguous ` <th> ` elements are merged via ` rowspan ` or ` colspan `
393- for ` "row" ` and ` "column" ` respectively (defaults to ` "both" ` ).
386+ - ` column_header_merge_depth: number ` configures the number of rows to include
387+ from ` colspan ` merging. This defaults to ` header_length - 1 ` .
388+ - ` row_height: number ` configures the pixel height of a row for virtual
389+ scrolling calculation. This is typically auto-detected from the DOM, but can
390+ be overridden if needed.
391+ - ` merge_headers: "column" | "row" | "both" | "none" ` configures whether
392+ equivalent, contiguous ` <th> ` elements are merged via ` rowspan ` or ` colspan `
393+ for ` "row" ` and ` "column" ` respectively (defaults to ` "both" ` ).
394394
395395### ` async ` Data Models
396396
@@ -445,11 +445,11 @@ However, CSS alone cannot select on properties of your _data_ - if you scroll
445445this example, the 2nd row will always be the striped one. Some other
446446data-reliant style examples include:
447447
448- - Styling a specific column in the virtual data set, as ` <td> ` may represent a
449- different column based on horizontal scroll position.
450- - Styling cells by value, +/-, heatmaps, categories, etc.
451- - Styling cells based on data within-or-outside of the virtual viewport,
452- grouping depth, grouping categories, etc.
448+ - Styling a specific column in the virtual data set, as ` <td> ` may represent a
449+ different column based on horizontal scroll position.
450+ - Styling cells by value, +/-, heatmaps, categories, etc.
451+ - Styling cells based on data within-or-outside of the virtual viewport,
452+ grouping depth, grouping categories, etc.
453453
454454To make CSS that is virtual-data-model-aware, you'll need to use
455455` addStyleListener() ` , which invokes a callback whenever the ` <table> ` is
@@ -605,4 +605,4 @@ The Regular Table project achieves the
605605## License
606606
607607This software is licensed under the Apache 2.0 license. See the
608- [ LICENSE] ( LICENSE ) and [ AUTHORS ] ( AUTHORS ) files for details.
608+ [ LICENSE] ( LICENSE ) file for details.
0 commit comments