Skip to content

How to display defaultValue on CreateForm #1072

Closed Answered by sacidaksoy
sacidaksoy asked this question in Q&A
Discussion options

You must be logged in to vote
<Button
              variant="contained"
              onClick={() => {
                table.setCreatingRow(true); //simplest way to open the create row modal with no default values
                //or you can pass in a row object to set default values with the `createRow` helper function
                // table.setCreatingRow(
                //   createRow(table, {
                //     //optionally pass in default values for the new row, useful for nested data or other complex scenarios
                //   }),
                // );
              }}
            >

Oohh, I couldn't see that sorry

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sacidaksoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant