Skip to content
Eric edited this page Feb 7, 2024 · 3 revisions

Flip is a component that generates 2 OML placeholders and flips from one panel (OML tree) to the other (OML tree)

OML

 {"default:Flip":{
     "node:OML" : [OML_A, OML_B]
 }}

Methods

 myFlip.flip(); //flips
 myFlip.val(); //returns side, either 0 or 1

Example

 {"default:Flip":{
     "node:OML" : [
         {"default:Html":{
            "html" : "Side A"
         }},
         {"default:Html":{
            "html" : "Side B"
         }}
     ]
 }}
Clone this wiki locally