open class ContextMenu : ListTag
Context menu component.
ContextMenu(element: Widget? = null, fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null) |
val fixedPosition: Boolean
use fixed positioning |
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. |
const val DEFAULT_FIXED_POS_X: Int |
|
const val DEFAULT_FIXED_POS_Y: Int |
fun Widget.contextMenu(fixedPosition: Boolean = false, 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. |