You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: reflex/components/radix/themes/components/context_menu.py
+79-1
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
11
11
from ..baseimportLiteralAccentColor, RadixThemesComponent
12
12
from .checkboximportCheckbox
13
+
from .radio_groupimportHighLevelRadioGroup
13
14
14
15
LiteralDirType=Literal["ltr", "rtl"]
15
16
@@ -226,7 +227,11 @@ class ContextMenuItem(RadixThemesComponent):
226
227
# Optional text used for typeahead purposes. By default the typeahead behavior will use the content of the item. Use this when the content is complex, or you have non-textual content inside.
"""The component that contains context menu radio items."""
302
+
303
+
tag="ContextMenu.RadioItem"
304
+
305
+
# Override theme color for Dropdown Menu Content
306
+
color_scheme: Var[LiteralAccentColor]
307
+
308
+
# Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
309
+
as_child: Var[bool]
310
+
311
+
# The unique value of the item.
312
+
value: Var[str]
313
+
314
+
# When true, prevents the user from interacting with the item.
315
+
disabled: Var[bool]
316
+
317
+
# Event handler called when the user selects an item (via mouse or keyboard). Calling event.preventDefault in this handler will prevent the context menu from closing when selecting that item.
318
+
on_select: EventHandler[no_args_event_spec]
319
+
320
+
# Optional text used for typeahead purposes. By default the typeahead behavior will use the .textContent of the item. Use this when the content is complex, or you have non-textual content inside.
321
+
text_value: Var[str]
322
+
323
+
250
324
classContextMenu(ComponentNamespace):
251
325
"""Menu representing a set of actions, displayed at the origin of a pointer right-click or long-press."""
252
326
@@ -259,6 +333,10 @@ class ContextMenu(ComponentNamespace):
0 commit comments