# Need details about the modal window

**URL:** <https://community.grafana.com/t/need-details-about-the-modal-window/14706>\
**Category:** General\
**Created:** [February 22, 2019, 7:21am UTC](https://community.grafana.com/t/need-details-about-the-modal-window/14706 "2019-02-22T07:21:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamen](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jamen](https://community.grafana.com/u/jamen)\
**Post date:** [February 22, 2019, 7:21am UTC](https://community.grafana.com/t/need-details-about-the-modal-window/14706/1 "2019-02-22T07:21:04Z")

</div>

Hi there,

I’m new to Grafana, now I’m building a plugin that needs modal window. All I know to show a modal window is to:

const showModal = (html) =\> {  
appEvents.emit(‘show-modal’, {  
src: ‘public/plugins/master-data-reason-codes-crud-panel/partials/’ + html,  
modalClass: ‘confirm-modal’,  
model: {}  
})  
}

which works.

But I want more details on the params, what else params can I put into it? I didn’t find any docs regarding this.

Also, I want to know how I can detect if the modal window is fully loaded? I used $(’#modal-div-id’).ready(fn…), which does not work. I don’t want to settimeout BTW.

Many thanks.
