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),[Rule(a,a),Rule(b,b),Rule(c,c)])\mathrm{PopupMenuBox}(\mathrm{Dynamic}(c), \bigl\lbrack\mathrm{Rule}(a, \text{a}), \mathrm{Rule}(b, \text{b}), \mathrm{Rule}(c, \text{c})\bigr\rbrack)OutPopupMenuBox(Dynamic(c),[Rule(a,a),Rule(b,b),Rule(c,c)])\mathrm{PopupMenuBox}(\mathrm{Dynamic}(c), \bigl\lbrack\mathrm{Rule}(a, \text{a}), \mathrm{Rule}(b, \text{b}), \mathrm{Rule}(c, \text{c})\bigr\rbrack)
About
Examples1
Checked againstWolfram Language 1 agree
CrosswalkWolfram Language

See also: SetterBox, TogglerBox