Consider some list:
list = {"A","B","C","D"}
How to select only particular values from it using a dynamic dialog window that prevents the code below it from evaluating before the choice is made (by using e.g. DialogInput
)?
Consider some list:
list = {"A","B","C","D"}
How to select only particular values from it using a dynamic dialog window that prevents the code below it from evaluating before the choice is made (by using e.g. DialogInput
)?
You can use TogglerBar
.
selectionDialog[list_] :=
DialogInput[{choice = {}},
Column[{TogglerBar[Dynamic[choice], list],
Button["OK", DialogReturn[choice]]}]]
list = {"A", "B", "C", "D"};
selectionDialog[list]