open class ContextMenu : ListTag
Context menu component.
ContextMenu(classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null) |
var elements: List<String>?
List of elements. |
|
var rich: Boolean
Determines if elements can contain HTML code. |
|
var type: ListType
List type. |
open fun positionMenu(mouseEvent: MouseEvent): ContextMenu
Positions and shows a context menu based on a mouse event. |
open fun childrenVNodes(): Array<VNode>
Returns the array of the children Snabbdom vnodes. |
|
open fun getSnClass(): List<StringBoolPair>
Returns list of CSS class names for current widget in the form of a List. |
|
open fun render(): VNode
Renders current component as a Snabbdom vnode. |
fun Widget.contextMenu(classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu
DSL builder extension function. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |