styledMenuItem
fun styledMenuItem(text: String? = null, graphic: Node? = null, vararg styleClass: String, id: String? = null): MenuItem
Create a styled MenuItem.
Return
the styled control created.
Parameters
styleClass
the CSS style class.
id
the CSS id.
fun MenuItemManager.styledMenuItem(text: String? = null, graphic: Node? = null, vararg styleClass: String, id: String? = null): MenuItem
Add a styled MenuItem to this manager.
Return
the styled control added.
Parameters
styleClass
the CSS style class.
id
the CSS id.
inline fun styledMenuItem(text: String? = null, graphic: Node? = null, vararg styleClass: String, id: String? = null, configuration: MenuItem.() -> Unit): MenuItem
Create a styled MenuItem with configuration block.
Return
the styled control created.
Parameters
styleClass
the CSS style class.
id
the CSS id.
configuration
the configuration block.
inline fun MenuItemManager.styledMenuItem(text: String? = null, graphic: Node? = null, vararg styleClass: String, id: String? = null, configuration: MenuItem.() -> Unit): MenuItem
Add a styled MenuItem with configuration block to this manager.
Return
the styled control added.
Parameters
styleClass
the CSS style class.
id
the CSS id.
configuration
the configuration block.