Skip to content

Instantly share code, notes, and snippets.

@follesoe
Created December 24, 2010 14:34
Show Gist options
  • Save follesoe/754288 to your computer and use it in GitHub Desktop.
Save follesoe/754288 to your computer and use it in GitHub Desktop.
JavaScript IntelliSense for the Vista Sidebar Object Model
System.Gadget = function()
{
/// <summary>Defines methods, events, and properties that are used to specify gadget configuration options in the Windows Sidebar environment.</summary>
/// <field name="background" type="String">Used in a gadget to set the background image using a file path or to get the file name of the current background image.</field>
/// <field name="docked" type="Boolean">Called from within a gadget to determine if the gadget making the script call is docked.</field>
/// <field name="name" type="String">Used from within a gadget as a means to determine the gadget name as specified in the gadget manifest file.</field>
/// <field name="opacity" type="Number" integer="true">Called from within a gadget to specify the percentage of opacity as an integer.</field>
/// <field name="path" type="String">Called from within a gadget to display the file path for the gadget.</field>
/// <field name="platformVersion" type="String">Called from within a gadget to retrieve the version of the gadget platform that the gadget is running on.</field>
/// <field name="settingsUI" type="String">Called from within a gadget to specify the settings to display to the user and activate the user interface so that the user can bring up the Settings dialog box.</field>
/// <field name="version" type="String">Called from within a gadget to retrieve the version of the Microsoft Windows operating system that the gadget platform is running on.</field>
/// <field name="visible" type="Boolean">The gadget's visibility status.</field>
this.background = "";
this.docked = false;
this.name = "";
this.opacity = 0;
this.path = "";
this.platformVersion = "";
this.settingsUI = "";
this.version = "";
this.visible = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment