Permalink
Browse files

Menu: Document _closeOnDocumentClick() extension point.

  • Loading branch information...
1 parent f60a073 commit 1bcb2abb613e1b4f75dca5f4c22db9667593b060 @tjvantoll tjvantoll committed Sep 26, 2013
Showing with 16 additions and 0 deletions.
  1. +16 −0 entries/menu.xml
View
@@ -227,6 +227,22 @@
</method>
<xi:include href="../includes/widget-method-widget.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
</methods>
+ <extension-points>
+ <method name="_closeOnDocumentClick" return="Boolean">
+ <desc>
+ Method that determines whether clicks on the document should close any open menus. By default, menus are closed unless the click occurred a menu.
+ </desc>
+ <argument name="event" type="Event"/>
+ <example>
+ <desc>Never close menus on document click.</desc>
+ <code><![CDATA[
+_closeOnDocumentClick: function( event ) {
+ return false;
+}
+]]></code>
+ </example>
+ </method>
+ </extension-points>
<events>
<event name="blur">
<desc>

0 comments on commit 1bcb2ab

Please sign in to comment.