CLIENT GUI Framework
[vnfsdk/refrepo.git] / openo-portal / portal-common / src / main / webapp / common / thirdparty / zTree / api / en / zTreeObj.cancelEditName.html
1 <div class="apiDetail">\r
2 <div>\r
3         <h2><span>Function(newName)</span><span class="path">zTreeObj.</span>cancelEditName</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>Cancel the edit name status. Can restore the original name, and can also force assigned to a new name.</p>\r
9                         <p class="highlight_red">Please use zTree object to executing the method.</p>\r
10                 </div>\r
11         </div>\r
12         <h3>Function Parameter Descriptions</h3>\r
13         <div class="desc">\r
14         <h4><b>newName</b><span>String</span></h4>\r
15         <p>Re given a new name</p>\r
16         <p class="highlight_red">If this parameter is omitted, then restore the original name.</p>\r
17         <h4 class="topLine"><b>Return </b><span>none</span></h4>\r
18         <p>no return value</p>\r
19         </div>\r
20         <h3>Examples of function</h3>\r
21         <h4>1. Cancel edit name, and restore the original name.</h4>\r
22         <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");\r
23 treeObj.cancelEditName();\r
24 </code></pre>\r
25         <h4>2. Cancel edit name , and set the new name.</h4>\r
26         <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");\r
27 treeObj.cancelEditName("test_new_name");\r
28 </code></pre>\r
29 </div>\r
30 </div>