Official / Standard method to display Modals / Dialogues

Hi All,

I’ve been going through the CRM source code to find the official / standard / proper SuiteCRM way to display a modal window using the libraries which come with the CRM,

The email settings page has a global function called overlay
which is not available on any other page, and similarly in the module builder module, the global SUGAR object has a property MessageBox but not on any other page.
These two pages seem to use these javascript functions and objects for powering Modal windows.

There is also a global YAHOO object which seems to be available everywhere,
I have a hunch the implementations above use this YAHOO object however I am not too sure.

You can find the words on the GitHub to find the code files.

Does this mean there is no standard for doing this?

What modal window? Can you please share the screenshots?

Those Yahoo objects are something called YUI (for Yahoo UI library)

There are different options if you just want a message box with standard buttons, or if you want a full modal (similar to an edit view with fields).

Search for YAHOO.widget.Dialog

Thanks @pgr,

I was leaning towards this,
I’ll into the documentation for YUI