randomguy
randomguy

Reputation: 277

Customize Dialog Material UI

I'm using material ui dialog, and i want to insert a table inside dialog. Can I do that?

                      <Button
                        variant="contained"
                        color="secondary"
                        onClick={this.handleOpenDialog}
                      >
                        Cancel
                      </Button>
                      <Dialog
                        agree={() =>
                          this.handleCloseDialog
                        }
                        open={this.state.openDialog}
                        title="Are you sure?"
                        dialog="Your data will be deleted!"
                        onClose={this.handleCloseDialog}
                      ></Dialog>

Upvotes: 0

Views: 3228

Answers (1)

Andrew Hill
Andrew Hill

Reputation: 2253

Place the table inside a DialogContent component within your dialog: https://material-ui.com/components/dialogs/#AlertDialog.js

Upvotes: 1

Related Questions