Use DataTable as list base

Summary:
Changelog: Standardized DataList component

This diff standardizes the DataList component, by reusing the DataList. This is done to be able to take full advantage of all its features like virtualisation, keyboard support, datasource support, etc.

Also cleaned up DataTable properties a bit, by prefixing all flags with `enableXXX` and setting clear defaults

Reviewed By: passy

Differential Revision: D28119721

fbshipit-source-id: b7b241ea18d788bfa035389cc8c6ae7ea95ecadb
This commit is contained in:
Michel Weststrate
2021-05-04 13:49:11 -07:00
committed by Facebook GitHub Bot
parent 5bf9541e05
commit d903a862d2
11 changed files with 244 additions and 157 deletions

View File

@@ -63,12 +63,12 @@ export default React.memo((props: {structure: Structure}) => {
<DataTable<{[key: string]: Value}>
records={rowObjs}
columns={columnObjs}
searchbar={false}
enableSearchbar={false}
/>
<DataTable<{[key: string]: Value}>
records={indexRowObjs}
columns={indexColumnObjs}
searchbar={false}
enableSearchbar={false}
/>
</Layout.Top>
);