CLIENT GUI Framework
[vnfsdk/refrepo.git] / openo-portal / portal-common / src / main / webapp / common / thirdparty / zTree / api / en / setting.edit.enable.html
1 <div class="apiDetail">\r
2 <div>\r
3         <h2><span>Boolean</span><span class="path">setting.edit.</span>enable</h2>\r
4         <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>\r
5         <div class="desc">\r
6                 <p></p>\r
7                 <div class="longdesc">\r
8                         <p>Set zTree is in edit mode</p>\r
9                         <p class="highlight_red">Please set this attribute before zTree initialization. If you need to change the edit mode after the initialization, please use zTreeObj.setEditable() method.</p>\r
10                         <p>Default: false</p>\r
11                 </div>\r
12         </div>\r
13         <h3>Boolean Format</h3>\r
14         <div class="desc">\r
15         <p> true means: zTree is in edit mode.</p>\r
16         <p> false means: zTree is not in edit mode.</p>\r
17         </div>\r
18         <h3>Editing Rules Description</h3>\r
19         <div class="desc">\r
20         <p>1. When click the node, it will not open '<span class="highlight_red">node.url</span>' specified URL.\r
21 <br/>2. Support for dynamic tree editing.\r
22 <br/>3. You can drag-drop nodes, and support drag-drop nodes between multiple trees.\r
23 <br/>4. Support use drag-drop to copy or move the node. (Reference: <span class="highlight_red">setting.edit.drag.isCopy / setting.edit.drag.isMove</span>)\r
24 <br/>5. You can use the Edit button to modify the name attribute.\r
25 <br/>6. You can use the Remove button to remove the node.\r
26 <br/>\r
27         </p>\r
28         <p class="highlight_red">Please note that letter case, do not change.</p>\r
29         </div>\r
30         <h3>Examples of setting</h3>\r
31         <h4>1. edit the tree</h4>\r
32         <pre xmlns=""><code>var setting = {\r
33         edit: {\r
34                 enable: true\r
35         }\r
36 };\r
37 ......</code></pre>\r
38 </div>\r
39 </div>