i2b2 Web Client
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...



Example constructor and destructor functions from a hypothetical "Hello World" example would be:

i2b2.HELLO.Init = function(loadedDiv) {
   // this function is called after the HTML is loaded into the viewer DIV
   i2b2.HELLO.view.containerDiv = loadedDiv; //save DIV reference for later use
   alert("Hello World: This message is from the initialization routine.");
   };
i2b2.HELLO.Unload = function() {
   // this function is called before the plugin is unloaded by the framework
   alert("Hello World: This message is from the unload routine.");
   // The next line is the boiler plate code that should work in many instances.
   // This routine can also be used to save the state of the plugin so that work
   // can seamlessly resume the plugin is loaded.
   return confirm("Are you sure you want to unload the Hello World plugin?');
};



Visual Functions - Resize, Hide, Show

...