Popover/dialog question

Hi

I have some widgets (eg. text_input) which will be updated, edited multiple times by different people. I need to have a conversation recorded around the data entered in each of those widgets (as depicted in the following picture) at different points in time. For now, each widget has an associated button in the neighbouring column connected to a dialog.

tmpdepix

Q1. Is there a cleaner way to implement this?
Q2. Would love to attach this dialog to the help parameter of the widget. That way I also have the option to include great / descriptive help text. Is this possible? maybe in the near future?

Thanks in advance.

1 Like

Cool use case!
To Q1: if you have a dedicated dialog-decorated function per widget, it might make sense to just have a single dialog function and pass in the widget-id as an argument and retrieve the relevant data based on that (maybe this is how it is already though!)

To Q2: I cannot think of a possibility for this right now with the existing help parameter as it only accepts a string :thinking: It should be possible to write a custom component for this though. Other than that, it might make sense to open a GitHub issue for the feature request and vote on it :slight_smile: :+1:

Hi @raethlein

Thanks for the quick response.

To 1: Yes, I had planned to eventually have a common function and pass the widget_id - this was just a prototype of what I wanted.
To 2: Will make an entry on Github.

Cheers

1 Like