Difference between revisions of "Help:Part Tools"

m
Line 11: Line 11:
  
 
<html><pre>
 
<html><pre>
array
+
var menuItems = [
 +
    [ 'A', 'url_a.cgi' ],
 +
    [ 'B', 'url_b.cgi' ],
 +
    [ '-' ],
 +
    [ 'C', 'url_c.cgi' ]
 +
]
 +
 
  
 
</pre>
 
</pre>
 
</html>
 
</html>

Revision as of 15:24, 20 April 2009

Each Part page has a new menu item: Part Tools. This provides a drop-down menu of tools that can be applied to this part. Some of the tools are provided by the registry while others are provided by other groups. You can apply to have your tool presented in this menu.



Software Design

The menu is generated by Javascript that has been loaded during page loading. The file URL is parts.igem.org/common/part_tool_menu.js. It uses the data in the file partsregisty.org/common/part_tools.js to build the menu.

Example of part_tools.js:

var menuItems = [
    [ 'A', 'url_a.cgi' ],
    [ 'B', 'url_b.cgi' ],
    [ '-' ],
    [ 'C', 'url_c.cgi' ]
]