OptionalbackdropWindow backdrop: acrylic (the default), mica, mica-alt or none. Other values keep the default.
OptionalbackdropDark tint for the backdrop; the default is true.
OptionalcloseLength of the closing animation in milliseconds, clamped to 0–1000; the default 0 closes at once.
OptionalcssStyle sheet applied to the menu on top of the built-in styles, at most 256 KiB.
OptionalcssReplace the built-in styles with css instead of adding to them.
OptionalitemsMenu rows; the SDK's MenuPopupItem describes their fields. A row icon over 32 KiB is dropped.
OptionalwindowcontentSized draws each panel in a window sized to its content; any other value uses one full-screen overlay window.
OptionalxScreen x of the anchor in physical pixels; absent or negative uses the mouse pointer.
OptionalyScreen y of the anchor in physical pixels; absent or negative uses the mouse pointer.
Parameters for
menu.show. Show a self-drawn menu. The choice arrives asmenu:selectand a dismissal asmenu:dismiss; changing a rating, slider or segmented row reportsmenu:valueChangedand leaves the menu open. Too many rows, too deep nesting, too many segments or too much style text fail withINVALID_PARAMSanddetails.