- Home
- Interfaces
- DiscordContextMenu~MenuRadioItem
-
MenuRadioItem
-
Description
This item is used for creating radio selections in menus. Properties shown here are additional to those of the main MenuItem module:DiscordContextMenu~MenuItem
Note: for the
forceUpdate
option... Without this enabled, you will manually need to manage the state for the functional component. If you do not the toggle will appear to not update. @see https://reactjs.org/docs/hooks-reference.html#usestateParameters
Name Type Attributes Default Description props.checked
boolean <optional> false should the checkbox be checked
props.active
boolean <optional> false alias of
checked
props.forceUpdate
boolean <optional> true should the menu be force-updated after click
Details