[{"data":1,"prerenderedAt":214},["ShallowReactive",2],{"docs-node-switch":3},{"id":4,"title":5,"body":6,"description":17,"extension":203,"meta":204,"navigation":208,"path":209,"seo":210,"sitemap":211,"stem":212,"__hash__":213},"nodes\u002Fdocs\u002Fnodes\u002Fswitch.md","Switch",{"type":7,"value":8,"toc":195},"minimark",[9,14,18,21,31,35,113,117,164,168],[10,11,13],"h2",{"id":12},"overview","Overview",[15,16,17],"p",{},"A switch node can be on or off. Switch this node using call edges or button nodes.",[15,19,20],{},"Category: Control",[15,22,23,24],{},"Tutorial: ",[25,26,30],"a",{"href":27,"rel":28},"https:\u002F\u002Fwanderer-flow.de\u002Fbuilder?flowUrl=https:\u002F\u002Fhub.wanderer-flow.de\u002Fflows\u002Fa6q0kwtnishaw169k96i0x31e3km2rlc",[29],"nofollow","Start interactive node tutorial",[10,32,34],{"id":33},"configurable-properties","Configurable properties",[36,37,38,60],"table",{},[39,40,41],"thead",{},[42,43,44,48,51,54,57],"tr",{},[45,46,47],"th",{},"Label",[45,49,50],{},"Property",[45,52,53],{},"Type",[45,55,56],{},"Default",[45,58,59],{},"Description",[61,62,63,80,97],"tbody",{},[42,64,65,68,71,74,77],{},[66,67,47],"td",{},[66,69,70],{},"label",[66,72,73],{},"text",[66,75,76],{},"\"\"",[66,78,79],{},"A text describing the switch. It is only shown in the graph.",[42,81,82,85,88,91,94],{},[66,83,84],{},"Initial on",[66,86,87],{},"initialOn",[66,89,90],{},"checkbox",[66,92,93],{},"false",[66,95,96],{},"Should the switch be initially on or off?",[42,98,99,102,105,107,110],{},[66,100,101],{},"Reset if back in context",[66,103,104],{},"resetOnReentry",[66,106,90],{},[66,108,109],{},"true",[66,111,112],{},"The switch should be reset to its initial state when it re-enters the context.",[10,114,116],{"id":115},"initial-states","Initial states",[36,118,119,131],{},[39,120,121],{},[42,122,123,126,129],{},[45,124,125],{},"State",[45,127,128],{},"Initial Value",[45,130,59],{},[61,132,133,144,154],{},[42,134,135,138,141],{},[66,136,137],{},"on",[66,139,140],{},"\"custom function\"",[66,142,143],{},"true if the switch is on, otherwise false; Initial value can be configured.",[42,145,146,149,151],{},[66,147,148],{},"off",[66,150,140],{},[66,152,153],{},"false if the switch is on, otherwise true; Initial value can be configured.",[42,155,156,159,161],{},[66,157,158],{},"value",[66,160,140],{},[66,162,163],{},"1 if the switch is on, 0 if the switch is off; Initial value can be configured.",[10,165,167],{"id":166},"callable-methods","Callable methods",[169,170,171,178,183,189],"ul",{},[172,173,174,177],"li",{},[175,176,137],"code",{},"() - Set the switch to on",[172,179,180,182],{},[175,181,148],{},"() - Set the switch to off",[172,184,185,188],{},[175,186,187],{},"toggle","() - Togle the switch",[172,190,191,194],{},[175,192,193],{},"reset","() - Resets the switch to its original state",{"title":196,"searchDepth":197,"depth":197,"links":198},"",2,[199,200,201,202],{"id":12,"depth":197,"text":13},{"id":33,"depth":197,"text":34},{"id":115,"depth":197,"text":116},{"id":166,"depth":197,"text":167},"md",{"slug":205,"category":206,"nodeKey":205,"tutorial":207},"switch","Control","https:\u002F\u002Fhub.wanderer-flow.de\u002Fflows\u002Fa6q0kwtnishaw169k96i0x31e3km2rlc",true,"\u002Fdocs\u002Fnodes\u002Fswitch",{"title":5,"description":17},{"loc":209},"docs\u002Fnodes\u002Fswitch","JFHNkjPlIDBu6_R5ZyXI3XmjTABg_XleDOrTsyq94ro",1786889214058]