This repository has been archived by the owner on Nov 23, 2022. It is now read-only.
Releases: unosquare/tubular-react
Releases · unosquare/tubular-react
Better component design
The purpose of these changes is to improve our grid in general. This PR includes the following major changes:
HOCs have been removed. Their logic was moved to a single hook since they were only providing a single method.
Initial unit tests for new useDataGrid hook have been added. We need to work more on unit tests.
Multiple bugs have been fixed like: Filter popovers were triggering unnecessary reloads, local storage was not initializing/hydrating settings properly.
Re-organized project structure.
In general, the DataGrid component was improved. In order to implement it we now only require:
<DataGrid
columns={columns}
dataSource={localData | remoteSource}
gridName='LocalDataGrid'
storage={new LocalStorage()}
onError={setErrorMessage}
/>
Thanks to @kadosh for this new approach!
Storage support
Breaking changes
- Include new
DataGridContext
to handleToolbarOptions
andStorage
props. - Storage property allows saving
DataGrid
settings, for example inLocalStorage
(default). ANullStorage
is included to avoid remember settings.
Minor issues and update dependencies
Implement popover instead of modals to show columns filters form.
See commit logs.
Release 0.3.0
Major refactor