In this example we use JavaScript to change some of the visualization options.
Draw types |
Almost all options can be reached through the same function:setProperty(String propertyName, String propertyValue)The list of the available properties, their possible and default values can be found here.
For example to change the Draw Type of the loaded molecule,setProperty("Ligand.DrawType", "Wire")should be called. Through JavaSript, we usedif(document.DrawType.group1[0].checked == true) { document.MSpaceApplet.setProperty( "Ligand.DrawType", document.DrawType.group1[0].value ); }