1 <div class="apiDetail">
\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
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 & setting.check.chkStyle = "checkbox"]</span></p>
\r
9 <p>Default: { "Y": "ps", "N": "ps" }</p>
\r
12 <h3>JSON Format</h3>
\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
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
25 chkStyle: "checkbox",
\r
26 chkboxType: { "Y": "p", "N": "s" }
\r