You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone! 👋 Is it possible to have multiple Dialog Content in a Dialog Component? I've combined the DropDownMenu with Dialog, which has multiple items that should open different Dialogs. How can I show the right Dialog? 🤔
<Dialog>
<DropdownMenu>
<DropdownMenuTrigger>
<Button variant="ghost" size="icon">
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuItem @click="handleDetails">Details</DropdownMenuItem>
<DialogTrigger asChild>
<DropdownMenuItem>Edit</DropdownMenuItem>
</DialogTrigger>
<DropdownMenuItem @click="handleDelete">Delete</DropdownMenuItem>
</DropdownMenuContent>
<!-- Open one of this when trigger click -->
<DigalogContext>
Details
</DialogContext>
<DigalogContext>
Update
</DialogContext>
<DigalogContext>
Delete
</DialogContext>
</DropdownMenu>
</Dialog>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey everyone! 👋 Is it possible to have multiple Dialog Content in a Dialog Component? I've combined the DropDownMenu with Dialog, which has multiple items that should open different Dialogs. How can I show the right Dialog? 🤔
Beta Was this translation helpful? Give feedback.
All reactions