Skip to content

PopupMenuBox ​

A menu of entries, one chosen: PopupMenu lowers to it.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguagePopupMenuBox✓
PopupMenuBox(binding, domain, options)A menu of entries, one chosen: PopupMenu lowers to it.
Typed signatures
TypePackageApplies
(expression, expression, expression*) -> boxesboxesalways

Domain: Boxes

Details
  • The domain is a rule list of value -> label, as in Wolfram's PopupMenuBox[Dynamic[c], {a -> "a", ...}]; an entry written Labeled(value, label) shows one thing and binds another. The example's expected shows Tuple: compute-engine reads a symbol-keyed pair as one.
  • Its intent is a choice.

Examples

Basic #

a box is inert: it evaluates to itself

live ↗
InPopupMenuBox(Dynamic(c),[KeyValuePair⁡(a,a),KeyValuePair⁡(b,b),KeyValuePair⁡(c,c)])\mathrm{PopupMenuBox}(\mathrm{Dynamic}(c), \bigl\lbrack\operatorname{KeyValuePair}(a, \text{a}), \operatorname{KeyValuePair}(b, \text{b}), \operatorname{KeyValuePair}(c, \text{c})\bigr\rbrack)OutPopupMenuBox(Dynamic(c),[(a,a),(b,b),(c,c)])\mathrm{PopupMenuBox}(\mathrm{Dynamic}(c), \bigl\lbrack(a,\text{a}), (b,\text{b}), (c,\text{c})\bigr\rbrack)
About
Examples1
Checked againstWolfram Language 1 agree
CrosswalkWolfram Language

See also: SetterBox, TogglerBox