<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h2&gt;Element Events&lt;/h2&gt;
&lt;table style=&quot;border:1px solid black;&quot;&gt;
	&lt;tr&gt;
		&lt;td&gt; onClick(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;left, top, e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;Click&amp;#8217; event handler. Left (x) and Top (y) coordinates of the mouse cursor position is passed. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; onContextMenu(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;left, top, e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;ContextMenu&amp;#8217; event handler. Left (x) and Top (y) coordinates of the mouse cursor position is passed. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; onMouseDown(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;left, top, e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;MouseDown&amp;#8217; event handler. Left (x) and Top (y) coordinates of the mouse cursor position is passed. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; onMouseMove(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;left, top, e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;MouseMove&amp;#8217; event handler. Left (x) and Top (y) coordinates of the mouse cursor position is passed. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; onMouseUp(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;left, top, e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;MoseUp&amp;#8217; event handler. Left (x) and Top (y) coordinates of the mouse cursor position is passed. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; onMouseOut(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;MouseOut&amp;#8217; event handler. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; onMouseOver(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;MouseOver&amp;#8217; event handler. &lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;h2&gt;Slot Events&lt;/h2&gt;
&lt;p&gt;Slots have all Element event methods and the following additional event methods:&lt;/p&gt;
&lt;table style=&quot;border:1px solid black;&quot;&gt;
	&lt;tr&gt;
		&lt;td&gt; onKeyDown(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;key, e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;KeyDown&amp;#8217; event handler. A string representing the key is passed. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; onKeyUp(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;key, e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;KeyUp&amp;#8217; event handler. A string representing the key is passed. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; onResize(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;Resize&amp;#8217; event handler. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; onScroll(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;Scroll&amp;#8217; event handler. &lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;h2&gt;Control Events&lt;/h2&gt;
&lt;p&gt;Controls have all Element event methods and the following additional event methods:&lt;/p&gt;
&lt;table style=&quot;border:1px solid black;&quot;&gt;
	&lt;tr&gt;
		&lt;td&gt; onKeyDown(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;key, e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;KeyDown&amp;#8217; event handler. A string representing the key is passed. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; onKeyUp(&lt;em&gt;&amp;#91;object options&amp;#93;&lt;/em&gt;) { &amp;#124;key, e&amp;#124; &amp;#8230; } &lt;/td&gt;
		&lt;td&gt; &amp;rarr; &lt;/td&gt;
		&lt;td&gt; Event &lt;/td&gt;
		&lt;td&gt; Creates a &amp;#8216;KeyUp&amp;#8217; event handler. A string representing the key is passed. &lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;h2&gt;Options&lt;/h2&gt;
&lt;table style=&quot;border:1px solid black;&quot;&gt;
	&lt;tr&gt;
		&lt;td&gt; preventDefault &lt;/td&gt;
		&lt;td&gt; boolean &lt;/td&gt;
		&lt;td&gt; Prevents default event actions. &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td&gt; stopPropagation &lt;/td&gt;
		&lt;td&gt; boolean &lt;/td&gt;
		&lt;td&gt; Stops further propagation of the event. &lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;h3&gt;Example&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;onClick({stopPropagation: true, preventDefault: true}) { ... }&lt;/code&gt;&lt;/p&gt;</body>
  <created-at type="datetime">2009-11-25T11:13:09-08:00</created-at>
  <id type="integer">185558</id>
  <permalink>events</permalink>
  <repository-id type="integer">76744</repository-id>
  <title>Events</title>
  <updated-at type="datetime">2009-04-24T05:44:51-07:00</updated-at>
  <user-id type="integer">30173</user-id>
</wiki>
