CLIENT GUI Framework
[vnfsdk/refrepo.git] / openo-portal / portal-common / src / main / webapp / common / thirdparty / zTree / api / en / setting.check.chkboxType.html
1 <div class="apiDetail">\r
2 <div>\r
3         <h2><span>JSON</span><span class="path">setting.check.</span>chkboxType</h2>\r
4         <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>\r
5         <div class="desc">\r
6                 <p></p>\r
7                 <div class="longdesc">\r
8                         <p>When one node is checked or unchecked, control its parent node and its child node auto checked or unchecked. It is valid when <span class="highlight_red">[setting.check.enable = true &amp; setting.check.chkStyle = "checkbox"]</span></p>\r
9                         <p>Default: { "Y": "ps", "N": "ps" }</p>\r
10                 </div>\r
11         </div>\r
12         <h3>JSON Format</h3>\r
13         <div class="desc">\r
14         <p>"Y" attribute use to set auto check after checkbox was checked.\r
15 <br/>"N" attribute use to set auto uncheck after checkbox was unchecked.\r
16 <br/>If value has "p", so parent nodes will be checked or unchecked.\r
17 <br/>If value has "s", so child nodes will be checked or unchecked.</p>\r
18         <p class="highlight_red">Please note that letter case, do not change.</p>\r
19         </div>\r
20         <h3>Examples of setting</h3>\r
21         <h4>1. If check the node, so only auto check parent nodes; If uncheck the node, so only auto uncheck child nodes;</h4>\r
22         <pre xmlns=""><code>var setting = {\r
23         check: {\r
24                 enable: true,\r
25                 chkStyle: "checkbox",\r
26                 chkboxType: { "Y": "p", "N": "s" }\r
27         }\r
28 };\r
29 ......</code></pre>\r
30 </div>\r
31 </div>