<HTML> <HEAD> <meta charset="UTF-8"> <title>Widget.setContextMenu - kvision</title> <link rel="stylesheet" href="../../../style.css"> </HEAD> <BODY> <a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.core</a> / <a href="index.html">Widget</a> / <a href="./set-context-menu.html">setContextMenu</a><br/> <br/> <h1>setContextMenu</h1> <a name="pl.treksoft.kvision.core.Widget$setContextMenu(pl.treksoft.kvision.dropdown.ContextMenu)"></a> <code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">setContextMenu</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.core.Widget$setContextMenu(pl.treksoft.kvision.dropdown.ContextMenu)/contextMenu">contextMenu</span><span class="symbol">:</span> <a href="../../pl.treksoft.kvision.dropdown/-context-menu/index.html"><span class="identifier">ContextMenu</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">Widget</span></a></code> <p>Sets context menu for the current widget.</p> <h3>Parameters</h3> <p><a name="contextMenu"></a> <code>contextMenu</code> - a context menu</p> <p><strong>Return</strong><br/> current widget</p> </BODY> </HTML>