Modal window in panel

I want to display a modal window in my panel, like this:


Where can I see an example of adding a modal window for a plug-in panel?

you can emit the show-modal event:

1 Like

How can I pass the context of my panel to the HTML template (https://github.com/grafana/grafana/blob/e9d5e037e817b57303c4497b42b28ee9403dd65f/public/app/features/alerting/alert_list_ctrl.ts#L65)?
I need that in the modal window it is possible to call the function of the passed context.

Via scope property that you can send the event payload

Sorry, but I do not understand how to do this. The modal window template does not see the $scope. What should I do to make $scope visible in the template ?

See here

1 Like

Hi torkel,

In my alerting directory alert_tab_ctrl.ts and alert_model.ts not exist. what i must do?

Thanks.