Use the following code to create a basic inputEx Dialog. Note the scope hack with "Example1" to define the buttons callbacks.
Access the YUI panel properties with the "panelConfig" object. Example with a modal dialog. (See the YUI panel documentation for more informations.)