1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.menu.CheckItem</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.menu.CheckItem-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.menu.CheckItem-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.menu.CheckItem-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.menu.CheckItem-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.menu.Item.html#constructor" roo:cls="Roo.menu.Item.html#constructor">Roo.menu.Item</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.menu.CheckItem
52 <!-- ============================== class title / details ============================ -->
55 <h1 class="classTitle">
57 Class Roo.menu.CheckItem
60 <table cellspacing="0" class="class-summary-table">
62 <tr><td class="label">Package:</td><td class="hd-info">Roo.menu</td></tr>
64 <tr><td class="label">Defined In:</td><td class="hd-info">
66 <a href="./src/Roo_menu_CheckItem.js.html">Roo/menu/CheckItem.js</a>.
69 <tr><td class="label">Class:</td><td class="hd-info">CheckItem</td></tr>
74 <tr><td class="label">Extends:</td><td class="hd-info">
75 <a href="./Roo.menu.Item.html#constructor" roo:cls="Roo.menu.Item.html#constructor">Roo.menu.Item</a>
83 <!-- ============================== class summary ========================== -->
84 <div class="description">
85 Adds a menu item that contains a checkbox by default, but can also be part of a radio group.
89 <!-- ============================== Class comment block... ========================== -->
91 <div class="comments">
92 <b>Class Comments / Notes</B> =>
93 <u onclick="parent.CommentDialog.showCommentId = 'Roo.menu.CheckItem';">[Add Your comment/notes about this class]</u>
95 <iframe frameborder="0" id="comments-Roo.menu" style="border: none;width:100%;"
96 src="/blog.php/GtkDjsComments/Roo.menu.CheckItem.html"></iframe>
101 <!-- ============================== config options ========================== -->
106 <div class="hr"></div>
107 <a id="Roo.menu.CheckItem-configs"></a>
113 <table cellspacing="0" class="member-table">
114 <caption>Config Options (Usually are also Properties)</caption>
118 <th class="sig-header" colspan="2">Options</th>
120 <th class="msource-header">Defined By</th>
127 <tr class="config-row expandable config-row-alt0 notInherited">
128 <td class="micon"><a class="exi" href="#expand"> </a></td>
131 <a id="Roo.menu.CheckItem-cfg-checked" name=".checked"></a>
132 <div class="fixedFont">
133 <b class="itemname">checked</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
139 <div class="short">True to initialize this checkbox as checked (defaults to false).</div>
143 <div class="long">True to initialize this checkbox as checked (defaults to false). Note that<br/>if this checkbox is part of a radio group (group = true) only the last item in the group that is<br/>initialized with checked = true will be rendered as checked.</div>
157 <tr class="config-row expandable config-row-alt1 notInherited">
158 <td class="micon"><a class="exi" href="#expand"> </a></td>
161 <a id="Roo.menu.CheckItem-cfg-group" name=".group"></a>
162 <div class="fixedFont">
163 <b class="itemname">group</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
169 <div class="short">All check items with the same group name will automatically be grouped into a single-select<br/>radio button group (defaults to '')</div>
173 <div class="long">All check items with the same group name will automatically be grouped into a single-select<br/>radio button group (defaults to '')</div>
187 <tr class="config-row expandable config-row-alt0 notInherited">
188 <td class="micon"><a class="exi" href="#expand"> </a></td>
191 <a id="Roo.menu.CheckItem-cfg-groupClass" name=".groupClass"></a>
192 <div class="fixedFont">
193 <b class="itemname">groupClass</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
199 <div class="short">The default CSS class to use for radio group check items (defaults to "x-menu-group-item")</div>
203 <div class="long">The default CSS class to use for radio group check items (defaults to "x-menu-group-item")</div>
217 <tr class="config-row expandable config-row-alt1 notInherited">
218 <td class="micon"><a class="exi" href="#expand"> </a></td>
221 <a id="Roo.menu.CheckItem-cfg-itemCls" name=".itemCls"></a>
222 <div class="fixedFont">
223 <b class="itemname">itemCls</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
229 <div class="short">The default CSS class to use for check items (defaults to "x-menu-item x-menu-check-item")</div>
233 <div class="long">The default CSS class to use for check items (defaults to "x-menu-item x-menu-check-item")</div>
257 <!-- ============================== public properties ==================== -->
261 <a id="Roo.menu.CheckItem-props"></a>
267 <table cellspacing="0" class="member-table">
268 <caption class="Empty">Public Properties - Has None</caption>
274 <!-- ============================== methods summary / details ======================== -->
277 <a id="Roo.menu.CheckItem-methods"></a>
278 <!-- constructor?? -->
285 <!-- then dynamics first -->
292 <table cellspacing="0" class="member-table">
293 <caption>Public Methods</caption>
295 <th class="sig-header" colspan="2">Method</th>
296 <th class="msource-header">Defined By</th>
306 <tr class="method-row config-row-alt0 expandable notInherited">
307 <td class="micon"><a class="exi" href="#expand"> </a></td>
311 <a id="Roo.menu-method-CheckItem" name=".CheckItem"></a>
312 <div class="fixedFont">
313 <span class="attributes">new <B>Roo.menu.</B></span><b class="itemname">CheckItem</b>
315 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
323 <div class="short">Create a new Roo.menu.CheckItem</div>
330 Create a new Roo.menu.CheckItem
333 <dl class="detailList">
334 <dt class="heading">Parameters:</dt>
337 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>config</b>
340 <dd>Configuration options</dd>
364 <tr class="method-row config-row-alt1 expandable notInherited">
365 <td class="micon"><a class="exi" href="#expand"> </a></td>
369 <a id="Roo.menu.CheckItem-method-setChecked" name=".setChecked"></a>
370 <div class="fixedFont">
371 <span class="attributes"></span><b class="itemname">setChecked</b>
373 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>checked</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
380 <div class="short">Set the checked state of this item</div>
386 Set the checked state of this item
393 <dl class="detailList">
394 <dt class="heading">Parameters:</dt>
397 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>checked</b>
400 <dd>The new checked value</dd>
403 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>suppressEvent</b>
406 <dd>(optional) True to prevent the checkchange event from firing (defaults to false)</dd>
435 <!-- ============================== events summary / details ======================== -->
438 <a id="Roo.menu.CheckItem-events"></a>
447 <table cellspacing="0" class="member-table">
448 <caption>Events</caption>
451 <th class="sig-header" colspan="2">Event</th>
452 <th class="msource-header">Defined By</th>
461 <tr class="method-row expandable config-row-alt0 notInherited">
462 <td class="micon"><a class="exi" href="#expand"> </a></td>
465 <a id="Roo.menu.CheckItem-event-*beforecheckchange"></a>
467 <div class="fixedFont">
468 <b class="itemname">beforecheckchange</b> (<a href="./Roo.menu.CheckItem.html#constructor" roo:cls="Roo.menu.CheckItem.html#constructor">Roo.menu.CheckItem</a> <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>checked</i></B>)
474 <div class="short">Fires before the checked value is set, providing an opportunity to cancel if needed
480 Fires before the checked value is set, providing an opportunity to cancel if needed
486 <dl class="detailList">
487 <dt class="heading">Parameters:</dt>
490 <span class="fixedFont"><a href="./Roo.menu.CheckItem.html#constructor" roo:cls="Roo.menu.CheckItem.html#constructor">Roo.menu.CheckItem</a></span> <b>this</b>
496 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>checked</b>
499 <dd>The new checked value that will be set</dd>
522 <tr class="method-row expandable config-row-alt1 notInherited">
523 <td class="micon"><a class="exi" href="#expand"> </a></td>
526 <a id="Roo.menu.CheckItem-event-*checkchange"></a>
528 <div class="fixedFont">
529 <b class="itemname">checkchange</b> (<a href="./Roo.menu.CheckItem.html#constructor" roo:cls="Roo.menu.CheckItem.html#constructor">Roo.menu.CheckItem</a> <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>checked</i></B>)
535 <div class="short">Fires after the checked value has been set
541 Fires after the checked value has been set
547 <dl class="detailList">
548 <dt class="heading">Parameters:</dt>
551 <span class="fixedFont"><a href="./Roo.menu.CheckItem.html#constructor" roo:cls="Roo.menu.CheckItem.html#constructor">Roo.menu.CheckItem</a></span> <b>this</b>
557 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>checked</b>
560 <dd>The checked value that was set</dd>
590 <!-- ============================== footer ================================= -->
591 <div class="fineprint" style="clear:both">
593 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Jul 16 2010 19:32:56 GMT+0800 (HKT)
595 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>