DMenuOption
Description
This is used internally - although you're able to use it you probably shouldn't.
Internal subpanel that represents an option used by DMenu.
Parent
Derives methods, etc not listed on this page from DButton.
Implements
Implements or overrides the following hooks/methods. If you want to override these, you probably want to call the original function too.
Methods
boolean DMenuOption:GetIsCheckable()
Returns whether the DMenuOption is a checkbox option or a normal button option.
DMenuOption:SetChecked( boolean checked )
Sets the checked state of the DMenuOption. Does not invoke DMenuOption:OnChecked.
DMenuOption:SetIsCheckable( boolean checkable )
Sets whether the DMenuOption is a checkbox option or a normal button option.
DMenuOption:SetSubMenu( Panel menu )
This is used internally - although you're able to use it you probably shouldn't.
Used internally by DMenuOption:AddSubMenu to create the submenu arrow and assign the created submenu to be opened this this option is hovered.
DMenuOption:ToggleCheck()
Toggles the checked state of DMenuOption. Does not respect DMenuOption:GetIsCheckable.