-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Create a codemod to replace Datagrid
by DataTable
#10762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…atagrid component by & .RaDataTable-xxxx
It would be great if this handled Also, |
Hi @dalen
|
@dalen on second look I realize that supporting |
Problem
We have too many
Datagrid
that we want to transform toDataTable
to do it manuallySolution
Create a codemod to do it automatically
How To Test
test.tsx
and fill it with the example you want to transform. e.g.: the following oneTo Do
Datagrid
component<DataTable.Col source="xxx">
Datagrid
propsoptimized
prop of theDatagrid
componentrowStyle
prop of theDatagrid
component byrowSx
& .RaDatagrid-xxxx
key of thesx
prop of theDatagrid
component by& .RaDataTable-xxxx
TextField
(with onlysource
,label
and/orempty
)NumberField
(with onlysource
,label
,empty
,option
and/orlocal
)Additional Checks
master
for a bugfix or a documentation fix, ornext
for a feature