[{"data":1,"prerenderedAt":213},["ShallowReactive",2],{"docs-node-switch":3},{"id":4,"title":5,"body":6,"description":17,"extension":202,"meta":203,"navigation":207,"path":208,"seo":209,"sitemap":210,"stem":211,"__hash__":212},"nodes\u002Fdocs\u002Fnodes\u002Fswitch.md","Switch",{"type":7,"value":8,"toc":194},"minimark",[9,14,18,21,31,35,112,116,163,167],[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],{},"true",[66,95,96],{},"Should the switch be initially on or off?",[42,98,99,102,105,107,109],{},[66,100,101],{},"Reset if back in context",[66,103,104],{},"resetOnReentry",[66,106,90],{},[66,108,93],{},[66,110,111],{},"The switch should be reset to its initial state when it re-enters the context.",[10,113,115],{"id":114},"initial-states","Initial states",[36,117,118,130],{},[39,119,120],{},[42,121,122,125,128],{},[45,123,124],{},"State",[45,126,127],{},"Initial Value",[45,129,59],{},[61,131,132,143,153],{},[42,133,134,137,140],{},[66,135,136],{},"on",[66,138,139],{},"\"custom function\"",[66,141,142],{},"true if the switch is on, otherwise false; Initial value can be configured.",[42,144,145,148,150],{},[66,146,147],{},"off",[66,149,139],{},[66,151,152],{},"false if the switch is on, otherwise true; Initial value can be configured.",[42,154,155,158,160],{},[66,156,157],{},"value",[66,159,139],{},[66,161,162],{},"1 if the switch is on, 0 if the switch is off; Initial value can be configured.",[10,164,166],{"id":165},"callable-methods","Callable methods",[168,169,170,177,182,188],"ul",{},[171,172,173,176],"li",{},[174,175,136],"code",{},"() - Set the switch to on",[171,178,179,181],{},[174,180,147],{},"() - Set the switch to off",[171,183,184,187],{},[174,185,186],{},"toggle","() - Togle the switch",[171,189,190,193],{},[174,191,192],{},"reset","() - Resets the switch to its original state",{"title":195,"searchDepth":196,"depth":196,"links":197},"",2,[198,199,200,201],{"id":12,"depth":196,"text":13},{"id":33,"depth":196,"text":34},{"id":114,"depth":196,"text":115},{"id":165,"depth":196,"text":166},"md",{"slug":204,"category":205,"nodeKey":204,"tutorial":206},"switch","Control","https:\u002F\u002Fhub.wanderer-flow.de\u002Fflows\u002Fa6q0kwtnishaw169k96i0x31e3km2rlc",true,"\u002Fdocs\u002Fnodes\u002Fswitch",{"title":5,"description":17},{"loc":208},"docs\u002Fnodes\u002Fswitch","3vgC0yj3ykwPuhwKRswyCiL6tm0B023uPlTVfba2Oq0",1785616523067]