nJDSK.customHeaderDialog


Creates a custom dialog

nJDSK.customHeaderDialog(winTitle, title, message, buttons, isFullGlass)

Parameters

  • string winTitle window title
  • string title dialog content title
  • string message dialog content
  • array buttons array of objects
  • bool isFullGlass semitransparent content area

Example

nJDSK.customHeaderDialog(
    'About',
    'About nJDesktop',
    'Created by Nagy Ervin<br />Colorful HQ background image by <a href="http://www.superhqwallpapers.com/2012/02/07/hq-random-backgrounds/colorful-hq-background-1920x1200/">Super Hq Wallpapers</a><br />Menu Silk Icons by <a href="http://famfamfam.com/">FAMFAMFAM</a>',
    [
        {
            type:'ok_yes',  // this is a CSS class, so buttons can have different styles
            value:'OK', // button title
            callback:function(win){
                                // button click event
                win.close();
            }
        },
        {
            type:'no_cancel',  // this is a CSS class, so buttons can have different styles
            value:'OK', // button title
            callback:function(win){
                                // button click event
                win.close();
            }
        }
    ]
);