Mth Clv
Mth Clv

Reputation: 667

is it possible to have a table embedded in message of dash dcc.confirmdialog?

Trying to see if I can enhance the confirmdialog pop up message window by passing not only string but maybe a dash table with a few records and option to collapse it for user. Is that possible?

https://dash.plotly.com/dash-core-components/confirmdialog

Upvotes: 0

Views: 730

Answers (1)

Daniel Al Mouiee
Daniel Al Mouiee

Reputation: 1200

It's not possible to render Dash or HTML components in a dcc.ConfirmDialog. Only a string can be displayed within the ConfirmDialog using the message property, no children property exists to render other dash components.

However, this dash component is an instance of a browser's native confirm Modal. So you could use the dash-bootstrap-components Modal component, which could potentially take in Dash-tables.

Upvotes: 1

Related Questions