Switch Case ❺🧪
Intelligent, script-driven switching of a content area.
switch(x) {
case 'item1': {
console.log("item1 selected.");
break;
}
case 'item2': {
console.log("item2 selected.");
break;
}
default: {
console.log("no matching item found.");
break;
}
}Basic Usage Notes
Switch Attributes
wfu-switch = ( switch-name )
wfu-switch-match = ( match-type )
wfu-switch-display = ( display-type )
Switch Case Attributes
wfu-switch-case = ( case-name )
Advanced Usage Notes
Designer Experience
Future
Last updated