Clicking the below buttons toggle the visibility of this division.
The transistions are slow, and use various effects:
Action
Effect
Toggle
bounce
Hide
puff
Show
fade
:ClassjqToggleSimple: MiPageSample
⍝ Control:: _JQ.jqToggle _JQ.jqHide _JQ.jqShow _html.head
⍝ Description:: Toggle, show, and hide an element during callback :field public TABLE←3 2⍴'Toggle''bounce''Hide''puff''Show''fade'
∇ Compose;output:Access public
Use'JQueryUI' ⍝ because we will add jQuery UI effects later output←'#output'Add_.divScriptFollowsoutput.Add_.p'Clicking the below buttons toggle the visibility of this division.'output.Add_.p'The transistions are slow, and use various effects:'output.Add_.Table('Action''Effect'⍪TABLE)''1{(⍵ Add _.Button ⍵).On'click''Click'}¨TABLE[;1]
∇
∇ r←Click;i:Access public
i←TABLE[;1]⍳⊂_what
⍝ Scripts belong in the <head> element: r←'head'AppendNew_.jqToggle_.jqHide_.jqShow[i],⊂'#output'(⊃⌽TABLE[i;])''800
∇
:EndClass