forked from extern/egroupware
185 lines
11 KiB
HTML
Executable File
185 lines
11 KiB
HTML
Executable File
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
|
|
lang="en" dir="ltr">
|
|
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="stylesheet" href="../codebase/default.css" type="text/css" media="screen" title="no title" charset="utf-8"><title>
|
|
dhtmlxmenu:event_handling [DHX documentation]
|
|
</title></head>
|
|
|
|
<body>
|
|
<div class="dokuwiki">
|
|
|
|
<div class="stylehead">
|
|
|
|
<div class="header">
|
|
<a class="logo" href="http://dhtmlx.com" title="DHTMLX Home Page"></a>
|
|
<span class="tittle-dhtmlx">DHTMLX Docs & Samples Explorer</span>
|
|
|
|
<div class="search-field">
|
|
<form action="/dhtmlx/docs/doku.php" accept-charset="utf-8" id="dw__search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" title="Search" /><button type="submit"></button><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form> </div>
|
|
<div class="buttons">
|
|
<a class="doc"></a>
|
|
<a title="DHTMLX Samples homepage" href="../samples.html" class="sample"/></a>
|
|
</div>
|
|
<!-- <div class="pagename">
|
|
[[<a href="#" title="Backlinks">dhtmlxmenu:event_handling</a>]]
|
|
</div>
|
|
<div class="logo">
|
|
<a href="/dhtmlx/docs/doku.php" name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[H]">DHX documentation</a> </div>
|
|
|
|
<div class="clearer"></div>-->
|
|
|
|
</div>
|
|
|
|
|
|
<!-- <div class="bar" id="bar__top">
|
|
<div class="bar-left" id="bar__topleft">
|
|
<form class="button btn_edit" method="post" action="/dhtmlx/docs/doku.php"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="" /><input type="hidden" name="id" value="dhtmlxmenu:event_handling" /><input type="submit" value="Edit this page" class="button" accesskey="e" title="Edit this page [E]" /></div></form> <form class="button btn_revs" method="get" action="/dhtmlx/docs/doku.php"><div class="no"><input type="hidden" name="do" value="revisions" /><input type="hidden" name="id" value="dhtmlxmenu:event_handling" /><input type="submit" value="Old revisions" class="button" accesskey="o" title="Old revisions [O]" /></div></form> </div>
|
|
|
|
<div class="bar-right" id="bar__topright">
|
|
<form class="button btn_recent" method="get" action="/dhtmlx/docs/doku.php"><div class="no"><input type="hidden" name="do" value="recent" /><input type="hidden" name="id" value="dhtmlxmenu:event_handling" /><input type="submit" value="Recent changes" class="button" accesskey="r" title="Recent changes [R]" /></div></form> <form action="/dhtmlx/docs/doku.php" accept-charset="utf-8" id="dw__search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" title="Search" /><button type="submit"></button><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>
|
|
</div>
|
|
|
|
<div class="clearer"></div>
|
|
</div> -->
|
|
|
|
<!-- <div class="breadcrumbs">
|
|
<span class="bchead">Trace:</span> <span class="bcsep">»</span> <span class="curid"><a href="/dhtmlx/docs/doku.php?id=dhtmlxmenu:event_handling" class="breadcrumbs" title="dhtmlxmenu:event_handling">event_handling</a></span> </div>
|
|
-->
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="page">
|
|
<!-- wikipage start -->
|
|
<!-- TOC START -->
|
|
<div class="toc">
|
|
<div class="tocheader toctoggle" id="toc__header">Table of Contents</div>
|
|
<div id="toc__inside">
|
|
|
|
<ul class="toc">
|
|
<li class="clear">
|
|
|
|
<ul class="toc">
|
|
<li class="level2"><div class="li"><span class="li"><a href="#event_handling" class="toc">Event Handling</a></span></div>
|
|
<ul class="toc">
|
|
<li class="level3"><div class="li"><span class="li"><a href="#available_events" class="toc">Available Events</a></span></div></li>
|
|
<li class="level3"><div class="li"><span class="li"><a href="#attaching_event_handler" class="toc">Attaching Event Handler</a></span></div></li></ul>
|
|
</li></ul>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<!-- TOC END -->
|
|
|
|
<p>
|
|
<div class='backlinks'><div class='backlink last_backlink'><img src="icons___file.gif" class="media" alt="" /><a href="../index.html" class="wikilink1" title="start">Index</a></div><div class='arrow'></div><div class='backlink last_backlink'><img src="icons___menu.gif" class="media" alt="" /><a href="index.html" class="wikilink1" title="dhtmlxmenu:toc">dhtmlxmenu</a></div></div>
|
|
|
|
</p>
|
|
|
|
<h2><a name="event_handling" id="event_handling">Event Handling</a></h2>
|
|
<div class="level2">
|
|
|
|
</div>
|
|
<div class="secedit"><form class="button btn_secedit" method="post" action="/dhtmlx/docs/doku.php"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="lines" value="53-82" /><input type="hidden" name="rev" value="1279031290" /><input type="hidden" name="id" value="dhtmlxmenu:event_handling" /><input type="submit" value="Edit" class="button" title="Event Handling" /></div></form></div>
|
|
<h3><a name="available_events" id="available_events">Available Events</a></h3>
|
|
<div class="level3">
|
|
|
|
<p>
|
|
|
|
There are the following available events in dhtmlxMenu:
|
|
</p>
|
|
<ul>
|
|
<li class="level1"><div class="li"> <a href="dhtmlxmenu___event_onclick_ontouch.html" class="wikilink1" title="dhtmlxmenu:event_onclick_ontouch">onClick</a> - occurs when the user clicks the left mouse button on an enabled, not complex menu item;</div>
|
|
</li>
|
|
<li class="level1"><div class="li"> <a href="dhtmlxmenu___event_onclick_ontouch.html" class="wikilink1" title="dhtmlxmenu:event_onclick_ontouch">onTouch</a> - occurs when the user first hovers over any menu item by a mouse cursor (is not applicable for the contextual menu);</div>
|
|
</li>
|
|
<li class="level1"><div class="li"> <a href="dhtmlxmenu___event_oncheckboxclick.html" class="wikilink1" title="dhtmlxmenu:event_oncheckboxclick">onCheckboxClick</a> - occurs when the user clicks any checkbox item;</div>
|
|
</li>
|
|
<li class="level1"><div class="li"> <a href="dhtmlxmenu___event_onradioclick.html" class="wikilink1" title="dhtmlxmenu:event_onradioclick">onRadioClick</a> - occurs when the user clicks any radio item;</div>
|
|
</li>
|
|
<li class="level1"><div class="li"> <a href="dhtmlxmenu___event_onxls.html" class="wikilink1" title="dhtmlxmenu:event_onxls">onXLS</a> - occurs before data loading from <acronym title="Extensible Markup Language">XML</acronym> has started;</div>
|
|
</li>
|
|
<li class="level1"><div class="li"> <a href="dhtmlxmenu___event_onxle.html" class="wikilink1" title="dhtmlxmenu:event_onxle">onXLE</a> - occurs after data loading from <acronym title="Extensible Markup Language">XML</acronym> has finished;</div>
|
|
</li>
|
|
<li class="level1"><div class="li"> <a href="dhtmlxmenu___event_onbeforecontextmenu.html" class="wikilink1" title="dhtmlxmenu:event_onbeforecontextmenu">onBeforeContextMenu</a> - occurs before the moment when a contextual menu appears (can be used only for a contextual menu);</div>
|
|
</li>
|
|
<li class="level1"><div class="li"> <a href="dhtmlxmenu___event_onaftercontextmenu.html" class="wikilink1" title="dhtmlxmenu:event_onaftercontextmenu">onAfterContextMenu</a> - occurs after the moment when a contextual menu appears (can be used only for a contextual menu).</div>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
<div class="secedit"><form class="button btn_secedit" method="post" action="/dhtmlx/docs/doku.php"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="lines" value="83-1101" /><input type="hidden" name="rev" value="1279031290" /><input type="hidden" name="id" value="dhtmlxmenu:event_handling" /><input type="submit" value="Edit" class="button" title="Available Events" /></div></form></div>
|
|
<h3><a name="attaching_event_handler" id="attaching_event_handler">Attaching Event Handler</a></h3>
|
|
<div class="level3">
|
|
|
|
<p>
|
|
|
|
The user can add any user-defined handler to available events.
|
|
To do this, he can use attachEvent() method with the following parameters:
|
|
</p>
|
|
<ul>
|
|
<li class="level1"><div class="li"> evName - name of the event;</div>
|
|
</li>
|
|
<li class="level1"><div class="li"> evHandler - user-defined event handler.</div>
|
|
</li>
|
|
</ul>
|
|
<pre class="code javascript"> menu.<span class="me1">attachEvent</span><span class="br0">(</span>evName<span class="sy0">,</span> evHandler<span class="br0">)</span>;</pre>
|
|
<p>
|
|
Note: the names of the events are case-insensitive.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
<div class="secedit"><form class="button btn_secedit" method="post" action="/dhtmlx/docs/doku.php"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="lines" value="1102-" /><input type="hidden" name="rev" value="1279031290" /><input type="hidden" name="id" value="dhtmlxmenu:event_handling" /><input type="submit" value="Edit" class="button" title="Attaching Event Handler" /></div></form></div>
|
|
<!-- wikipage stop -->
|
|
</div>
|
|
|
|
<div class="clearer"> </div>
|
|
|
|
|
|
<div class="stylefoot">
|
|
|
|
<div class="meta">
|
|
<div class="user">
|
|
</div>
|
|
<!-- <div class="doc">
|
|
dhtmlxmenu/event_handling.txt · Last modified: 2010/07/13 17:28 (external edit) </div>
|
|
</div>-->
|
|
|
|
|
|
<!--<div class="bar" id="bar__bottom">-->
|
|
<!--<div class="bar-left" id="bar__bottomleft">-->
|
|
<!--<form class="button btn_edit" method="post" action="/dhtmlx/docs/doku.php"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="" /><input type="hidden" name="id" value="dhtmlxmenu:event_handling" /><input type="submit" value="Edit this page" class="button" accesskey="e" title="Edit this page [E]" /></div></form>-->
|
|
<!--<form class="button btn_revs" method="get" action="/dhtmlx/docs/doku.php"><div class="no"><input type="hidden" name="do" value="revisions" /><input type="hidden" name="id" value="dhtmlxmenu:event_handling" /><input type="submit" value="Old revisions" class="button" accesskey="o" title="Old revisions [O]" /></div></form>-->
|
|
<!--</div>-->
|
|
<!--<div class="bar-right" id="bar__bottomright">-->
|
|
<!---->
|
|
<!---->
|
|
<!---->
|
|
<!---->
|
|
<!---->
|
|
<!--<form class="button btn_index" method="get" action="/dhtmlx/docs/doku.php"><div class="no"><input type="hidden" name="do" value="index" /><input type="hidden" name="id" value="dhtmlxmenu:event_handling" /><input type="submit" value="Index" class="button" accesskey="x" title="Index [X]" /></div></form>-->
|
|
<!--<a class="nolink" href="#dokuwiki__top"><input type="button" class="button" value="Back to top" onclick="window.scrollTo(0, 0)" title="Back to top" /></a> -->
|
|
<!--</div>-->
|
|
<!--<div class="clearer"></div>-->
|
|
<!--</div>-->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="footerinc">
|
|
|
|
|
|
</div>
|
|
|
|
<div class="no"><img src="/dhtmlx/docs/lib/exe/indexer.php?id=dhtmlxmenu%3Aevent_handling&1279804900" width="1" height="1" alt="" /></div>
|
|
<div class="footer">
|
|
<div class="footer-logo"></div>
|
|
<div class="copyright">Copyright © 1998-2009 DHTMLX LTD.<br />All rights reserved.</div>
|
|
<form class="button btn_edit" method="post" action="/dhtmlx/docs/doku.php"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="" /><input type="hidden" name="id" value="dhtmlxmenu:event_handling" /><input type="submit" value="Edit this page" class="button" accesskey="e" title="Edit this page [E]" /></div></form> </div>
|
|
</body>
|
|
</html>
|