item

[ root » gui » context-menu » item ]

Use the item object to style the appearance of the context menu items. Refer to the Context Menu Tutorial for more information.

AttributeTypeInfo

background-color backgroundColor

String

Sets the background color of the object.

"none" | "transparent" | "#f00" | "#f00 #00f" | "red yellow" | "rgb(100, 15, 15)" | ...

border-color borderColor

String

Sets the border color of the object.

"none" | "transparent" | "#f00" | "#f00 #00f" | "red yellow" | "rgb(100, 15, 15)" | ...

border-width borderWidth

Mixed

Sets the border width of the object.

4 | "6px" | ...

font-color fontColor

String

Sets the font color of the object.

"none" | "transparent" | "#f00" | "#f00 #00f" | "red yellow" | "rgb(100, 15, 15)" | ...

hover-state hoverState

Object

Demo

Sets how the context menu item appears when a user hovers over it. Use the backgroundColor and fontColor attributes.

{...}