1 <div class="apiDetail">
\r
3 <h2><span>Array(String)</span><span class="path">setting.async.</span>autoParam</h2>
\r
4 <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
\r
7 <div class="longdesc">
\r
8 <p>Required automatically submit the parameters about the properties of the parent node, when the asynchronous load. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
\r
12 <h3>Array(String) Format</h3>
\r
14 <p>1. Just save the attribute name of node to the array. For example: ["id", "name"]</p>
\r
15 <p>2. You can change the parameter name. For example: server only accepts "zId" -- ["id=zId"]</p>
\r
17 <h3>Examples of setting</h3>
\r
18 <h4>1. set auto commit 'id' attribute</h4>
\r
19 <pre xmlns=""><code>var setting = {
\r
22 url: "http://host/getNode.php",
\r
26 If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: id=1
\r
28 <h4>2. set auto commit 'id' attribute, but parameter name is 'zId'</h4>
\r
29 <pre xmlns=""><code>var setting = {
\r
32 url: "http://host/getNode.php",
\r
33 autoParam: ["id=zId"]
\r
36 If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: zId=1
\r