1.3.3 • Published 1 year ago

@paprika/data-table v1.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@paprika/data-table

Description

A virtualized table component.

Installation

yarn add @paprika/data-table

or with npm:

npm install @paprika/data-table

Props

DataTable

PropTyperequireddefaultDescription
a11yTextstringtrue-Accessible description of the table
childrenReactReactNodefalsenull
columnsArraytrue-Array of column definition
dataArraytrue-Array of data to be stored in the table
maxHeightstringfalse"100vh"The max height of the table in px/vh/calc(xvh+/-xpx)
maxWidthstringfalse"100vw"The max width of the table in px/vw/calc(xvw+/-xpx)
borderTypeBorderTypefalsegridTypes.HORIZONTALDefine the look for borders in the table
getRowHeightunknown,nullfalsenullFunction to return the row height for each row
hasZebraStripesbooleanfalsefalseAdd an alternating background on the table rows
isHeaderStickybooleanfalsetrueIf the entire table header is sticky or not
renderRowunknown,nullfalsenullOverride the table Column configuration for some particular rows
shouldResizeWithViewportbooleanfalsetrueIf the table should be resized when the viewport size changed
extraCellPropsRecordfalse{}Experimental prop

DataTable.InfiniteLoader

PropTyperequireddefaultDescription
isItemLoadedsignaturetrue-Function responsible for tracking the loaded state of each item.
itemCountnumbertrue-Number of rows in list; can be arbitrary high number if actual number is unknown.
loadMoreItemssignaturetrue-Callback to be invoked when more rows must be loaded.
It should return a Promise that is resolved once all data has finished loading.
isNextPageLoadingbooleanfalse-If true, will prevent the InfiniteLoader from asking to load more than once at a time
minimumBatchSizenumberfalse-Minimum number of rows to be loaded at a time; defaults to 10. This property can be used to batch requests to reduce HTTP requests.
thresholdnumberfalse-Threshold at which to pre-fetch data; defaults to 15. A threshold of 15 means that data will start loading when a user scrolls within 15 rows.

Links

1.3.3

1 year ago

1.3.2

1 year ago

1.3.2-next.0

1 year ago

1.3.3-next.0

1 year ago

1.3.1

1 year ago

1.3.1-next.0

1 year ago

1.3.0

2 years ago

1.3.0-next.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.4-next.0

2 years ago

1.2.2

2 years ago

1.2.3-next.0

2 years ago

1.2.2-next.0

2 years ago

1.2.1

2 years ago

1.2.1-next.0

2 years ago

1.2.1-next.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.1-next.2

2 years ago

1.1.1-next.1

2 years ago

1.1.1-next.0

2 years ago

1.2.0-next.0

2 years ago

1.0.0

2 years ago

1.0.0-next.0

2 years ago

0.2.1-next.1

2 years ago

0.2.1-next.0

2 years ago

0.2.1

2 years ago

1.1.0-next.0

2 years ago

0.2.0

2 years ago

0.2.0-next.1

2 years ago

0.1.2-next.0

2 years ago

0.1.1

2 years ago

0.1.1-next.3

2 years ago

0.1.1-next.2

2 years ago

0.1.1-next.1

2 years ago

0.1.1-next.0

2 years ago