Jmol/Interactivity: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Karsten Theis (talk | contribs)
No edit summary
Karsten Theis (talk | contribs)
No edit summary
Line 83: Line 83:
===Radio button===
===Radio button===


Please load <scene name='84/849728/Overall/1'>this scene</scene> before trying out the radiobuttons.
This set of buttons selects one side chain to be shown (or none).
This set of buttons selects one side chain to be shown (or none).
<jmol>
<jmol>
Line 135: Line 136:
|No side chains|select sidechain; spacefill off}}</nowiki>
|No side chains|select sidechain; spacefill off}}</nowiki>


<jmol>
Before you use the template above, please remove the line breaks so that the entire command is on a single line, otherwise it does not work.
  <jmolRadioGroup>
    <item>
      <script>select sidechain; spacefill off; select sidechain and 35; spacefill on</script>
      <text>Residue 35</text>
    </item>
    <item>
      <script>select sidechain; spacefill off; select sidechain and 52; spacefill on</script>
      <text>Residue 52</text>
    </item>
    <item>
      <script>select sidechain; spacefill off</script>
      <text>No side chains</text>
      <checked>true</checked>
    </item>
  </jmolRadioGroup>
</jmol>


</StructureSection>
</StructureSection>