Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 483 Bytes

guidelines.md

File metadata and controls

26 lines (19 loc) · 483 Bytes

Guidelines

Drop-downs

Export

Problematic Behavior

Though you can put the export code in the drop-down data array, it couldn't contain newlines (including ) without causing the drop-down option to not be saved correctly.

Alternative

Use

switch (dropdown_value) {
  case (value1) :
    // first multiline export code
    break;
  case (value2) :
    // second multiline export code
    break;
  default :
    // error: missing export code
}