SlideShare a Scribd company logo
jsTree v 0.9.8 jQuery Plugin Speaker:chloe
jsTree jsTree jsTree 是一個基於 jQuery 的 Tree 控件。支持 XML , JSON , Html 三種數據源。提供創建,重命名,移動,刪除,拖“放節點操作。可以自己自定義創建,刪除,嵌套,重命名,選擇節點的規則。在這些操作上可以添加多種監聽事件。 Currently supported browsers are: Internet Explorer 6 +, Mozilla Firefox, Safari 3, Opera 9+, Google Chrome. The latter three are not thoroughly tested.
jsTree - Key features Data sources :  predefined HTML - convert nested lists into a tree on the fly  JSON - provide a json object  XML - provide a nested structure or a flat (id -> parent_id) one  Async loading  - just provide an URL and the tree will request data as needed (works for XML & JSON sources)  Open, close, rename, create, delete nodes (all with definable rules)  Various  callbacks  (onchange, oncreate, ondelete, onload, etc …)  Drag & drop support  (definable with rules)  Multiple select  Localization - maintain the same tree in as many languages as you like  Right-to-left support  (supported in both supplied themes) Theme support  (change icons, sizes, backgrounds, etc …)  Animated open & close (configurable)  Optional keyboard navigation  multitree support  - move/copy nodes form to tree to tree (definable with rules) i.e. {rules : { multitree : true}} also works as a  jQuery plugin
jsTree - Required & optional files  four files are  required : source/_lib/jquery.js (version 1.3.2)  source/_lib/css.js  source/tree_component.js  source/tree_component.css
jsTree - Data of Json format 定義  json data  的格式 attributes object  可以放支援此  tag 的屬性 all members of the attributes object node get copied to the <li> node in the output HTML as attributes  i.e. {attributes:{id: “id_value”,rel= “rel_value”}} all attributes in any data object get copied to the <a> node  i.e. {data:{attributes:{“key”: “value”}}
jsTree - Data of json fomat with Langs. 只定義多國 標題 時採用 : i.e.  {data:{“en”: “en_title”, “zh_TW” : “ 中文標題” , …}}  定義更多屬性時採用 : i.e. {data: “en” :{title: “en_title,attributes: {}}, “ zh_TW” : {title: “ 中文標題” ,attributes:{}}}
jsTree - Rules 定義 Rules i.e. {dragrules : [ &quot;folder * folder&quot;, &quot;file after root2&quot;, &quot;tree-drop inside root2&quot; ]} jsTree 基本使用的規則是  [ before, after, inside, * ] 為固定樣式 . 而  folder, file , root2 …  是依照我們自己定義的 ,  我們可以在 rel 這個屬性裡定義我們想要的值 .
jsTree - Metadata Import jquery.metadata.js 在 Json data 裡宣告  mdata 的屬性 在 jsTree 的 Configuration  定義  {rules : {         metadata : &quot;mdata&quot;,         use_inline : true}} 擁有 mdata   屬性的 node  會根據  mdata  裡定義的 rules  去執行
jsTree - Others cookies 屬性 , 可以儲存當下使用者 open/close  或是 select  的 nodes 的狀態 Checkbox 的使用 使用  treeobj.create() method  會自動 check rules of creatable.  如果 creatable  不允許  root  建立 ,  會影響 create() method  Treeobj()
Reference http://www.cnblogs.com/Mecin/archive/2008/11/25/1340853.html http://jstree.com/reference/index.html JSTree http://code.google.com/p/jstree/ JSTree
jsTree v 0.9.9a 改版

More Related Content

PPTX
iOS程序设计-数据持久化
PDF
MongoDB for C# developer
PPT
Drag & drop
PPT
J Query Learn
PDF
MongoDB Basic
PPT
14 hibernate hql查询1
PPT
Mongo快速入门
PDF
Row Set初步学习V1.1
iOS程序设计-数据持久化
MongoDB for C# developer
Drag & drop
J Query Learn
MongoDB Basic
14 hibernate hql查询1
Mongo快速入门
Row Set初步学习V1.1

What's hot (19)

PPT
几种Nosql介绍
PPTX
jQuery源码学习
DOC
Lucene2 4学习笔记1
PPT
深入学习Mongo db
PDF
Ooredis
PPTX
主機管理基本指令練習(三)
KEY
冲浪 Object-c
PPTX
Java多线程设计模式
PPTX
Ch07 使用 JSTL
PPT
資料庫應用與實際操作
PPT
Mongo db技术分享
PPT
Hibernate查询
PPTX
jQuery 選取器解析
PDF
CH04:認識物件
PDF
10. 資料永續與交換
PDF
Jdbc Odbc使用Excel作数据源
PDF
Java物件導向
PDF
5. 從模組到類別
几种Nosql介绍
jQuery源码学习
Lucene2 4学习笔记1
深入学习Mongo db
Ooredis
主機管理基本指令練習(三)
冲浪 Object-c
Java多线程设计模式
Ch07 使用 JSTL
資料庫應用與實際操作
Mongo db技术分享
Hibernate查询
jQuery 選取器解析
CH04:認識物件
10. 資料永續與交換
Jdbc Odbc使用Excel作数据源
Java物件導向
5. 從模組到類別
Ad

Viewers also liked (17)

PPT
Oyster City: AR and Place-based Learning
PPTX
Iris scanning
PPTX
Is presentation
PPTX
Is presentation
PPS
The Ant Story(In Fact The Real Story)
PPTX
IS presentation
PPTX
CAN / CAN'T
PDF
실행 파일 대상 Sanitizer 작성 프레임워크 연구
PDF
Docker로 서버 개발 편하게 하기
PPTX
Presentation of the Canterville Ghost
PPTX
Yoga wahyu s 09330084 electromagnetic wave
PPTX
Iris scanning
PDF
Capture 20140117-132635 new
PPTX
한미Fta 독소조항
PPTX
Qué es el patrimonio
Oyster City: AR and Place-based Learning
Iris scanning
Is presentation
Is presentation
The Ant Story(In Fact The Real Story)
IS presentation
CAN / CAN'T
실행 파일 대상 Sanitizer 작성 프레임워크 연구
Docker로 서버 개발 편하게 하기
Presentation of the Canterville Ghost
Yoga wahyu s 09330084 electromagnetic wave
Iris scanning
Capture 20140117-132635 new
한미Fta 독소조항
Qué es el patrimonio
Ad

Similar to Js tree (20)

PDF
jQuery底层架构
KEY
Flex 4.5 action data communication
PPT
JQuery 学习
PDF
旺铺前端设计和实现
PDF
Jquery指南
PPTX
Android resource-management
PDF
运维系统开发与Rails 3页面开发实践
PPT
lwdba – 開放原始碼的輕量級資料庫存取程式庫
PDF
面向开发的前端性能优化
PPT
Qwrap jss
PPTX
浅析浏览器解析和渲染
PDF
KISSY for starter
PPT
Spry框架的简单使用小结
ODP
Backbone js and requirejs
PPT
Fast Esp搜索系统
PDF
用JAX-RS和Jersey完成RESTful Web Services
PPTX
HTML5 介绍
 
PPT
Javascript之昨是今非
PPT
jQuery介绍@disandu.com
PDF
Xml基础培训
jQuery底层架构
Flex 4.5 action data communication
JQuery 学习
旺铺前端设计和实现
Jquery指南
Android resource-management
运维系统开发与Rails 3页面开发实践
lwdba – 開放原始碼的輕量級資料庫存取程式庫
面向开发的前端性能优化
Qwrap jss
浅析浏览器解析和渲染
KISSY for starter
Spry框架的简单使用小结
Backbone js and requirejs
Fast Esp搜索系统
用JAX-RS和Jersey完成RESTful Web Services
HTML5 介绍
 
Javascript之昨是今非
jQuery介绍@disandu.com
Xml基础培训

Recently uploaded (20)

PPTX
3分钟读懂拉夫堡大学毕业证LU毕业证学历认证
PPTX
3分钟读懂圭尔夫大学毕业证U of G毕业证学历认证
PPTX
学校原版杜克大学毕业证Duke毕业证原版一比一
PPTX
《HSK标准教程4下》第15课课件new.pptx HSK chapter 15 pptx
PPTX
学校原版加利福尼亚大学戴维斯分校毕业证UCD毕业证原版一比一
PPTX
学校原版加州大学戴维斯分校毕业证UCD毕业证原版一比一
PDF
01_Course_Introduction(20210916課後更新).pdf
PDF
想要安全提高成绩?我们的黑客技术采用深度伪装和多层加密手段,确保你的信息安全无忧。价格公道,流程简单,同时提供全面的信息保护和事后痕迹清理,让你轻松提升G...
PPTX
ONU and OLT from Baudcom Jenny training PPT
PPTX
3分钟读懂索尔福德大学毕业证Salford毕业证学历认证
PPTX
3分钟读懂利物浦约翰摩尔大学毕业证LJMU毕业证学历认证
PPTX
3分钟读懂伦敦南岸大学毕业证LSBU毕业证学历认证
PPTX
3分钟读懂肯塔基大学毕业证UK毕业证学历认证
PPTX
3分钟读懂诺里奇艺术大学毕业证NUA毕业证学历认证
PPTX
3分钟读懂佩珀代因大学毕业证Pepperdine毕业证学历认证
PPTX
A Digital Transformation Methodology.pptx
PDF
黑客出手,分数我有!安全可靠的技术支持,让你的GPA瞬间提升,留学之路更加顺畅!【微信:viphuzhao】
PPTX
学校原版埃默里大学毕业证Emory毕业证原版一比一
PPTX
3分钟读懂南安普顿大学毕业证Soton毕业证学历认证
PPTX
3分钟读懂加州大学欧文分校毕业证UCI毕业证学历认证
3分钟读懂拉夫堡大学毕业证LU毕业证学历认证
3分钟读懂圭尔夫大学毕业证U of G毕业证学历认证
学校原版杜克大学毕业证Duke毕业证原版一比一
《HSK标准教程4下》第15课课件new.pptx HSK chapter 15 pptx
学校原版加利福尼亚大学戴维斯分校毕业证UCD毕业证原版一比一
学校原版加州大学戴维斯分校毕业证UCD毕业证原版一比一
01_Course_Introduction(20210916課後更新).pdf
想要安全提高成绩?我们的黑客技术采用深度伪装和多层加密手段,确保你的信息安全无忧。价格公道,流程简单,同时提供全面的信息保护和事后痕迹清理,让你轻松提升G...
ONU and OLT from Baudcom Jenny training PPT
3分钟读懂索尔福德大学毕业证Salford毕业证学历认证
3分钟读懂利物浦约翰摩尔大学毕业证LJMU毕业证学历认证
3分钟读懂伦敦南岸大学毕业证LSBU毕业证学历认证
3分钟读懂肯塔基大学毕业证UK毕业证学历认证
3分钟读懂诺里奇艺术大学毕业证NUA毕业证学历认证
3分钟读懂佩珀代因大学毕业证Pepperdine毕业证学历认证
A Digital Transformation Methodology.pptx
黑客出手,分数我有!安全可靠的技术支持,让你的GPA瞬间提升,留学之路更加顺畅!【微信:viphuzhao】
学校原版埃默里大学毕业证Emory毕业证原版一比一
3分钟读懂南安普顿大学毕业证Soton毕业证学历认证
3分钟读懂加州大学欧文分校毕业证UCI毕业证学历认证

Js tree

  • 1. jsTree v 0.9.8 jQuery Plugin Speaker:chloe
  • 2. jsTree jsTree jsTree 是一個基於 jQuery 的 Tree 控件。支持 XML , JSON , Html 三種數據源。提供創建,重命名,移動,刪除,拖“放節點操作。可以自己自定義創建,刪除,嵌套,重命名,選擇節點的規則。在這些操作上可以添加多種監聽事件。 Currently supported browsers are: Internet Explorer 6 +, Mozilla Firefox, Safari 3, Opera 9+, Google Chrome. The latter three are not thoroughly tested.
  • 3. jsTree - Key features Data sources : predefined HTML - convert nested lists into a tree on the fly JSON - provide a json object XML - provide a nested structure or a flat (id -> parent_id) one Async loading - just provide an URL and the tree will request data as needed (works for XML & JSON sources) Open, close, rename, create, delete nodes (all with definable rules) Various callbacks (onchange, oncreate, ondelete, onload, etc …) Drag & drop support (definable with rules) Multiple select Localization - maintain the same tree in as many languages as you like Right-to-left support (supported in both supplied themes) Theme support (change icons, sizes, backgrounds, etc …) Animated open & close (configurable) Optional keyboard navigation multitree support - move/copy nodes form to tree to tree (definable with rules) i.e. {rules : { multitree : true}} also works as a jQuery plugin
  • 4. jsTree - Required & optional files four files are required : source/_lib/jquery.js (version 1.3.2) source/_lib/css.js source/tree_component.js source/tree_component.css
  • 5. jsTree - Data of Json format 定義 json data 的格式 attributes object 可以放支援此 tag 的屬性 all members of the attributes object node get copied to the <li> node in the output HTML as attributes i.e. {attributes:{id: “id_value”,rel= “rel_value”}} all attributes in any data object get copied to the <a> node i.e. {data:{attributes:{“key”: “value”}}
  • 6. jsTree - Data of json fomat with Langs. 只定義多國 標題 時採用 : i.e. {data:{“en”: “en_title”, “zh_TW” : “ 中文標題” , …}} 定義更多屬性時採用 : i.e. {data: “en” :{title: “en_title,attributes: {}}, “ zh_TW” : {title: “ 中文標題” ,attributes:{}}}
  • 7. jsTree - Rules 定義 Rules i.e. {dragrules : [ &quot;folder * folder&quot;, &quot;file after root2&quot;, &quot;tree-drop inside root2&quot; ]} jsTree 基本使用的規則是 [ before, after, inside, * ] 為固定樣式 . 而 folder, file , root2 … 是依照我們自己定義的 , 我們可以在 rel 這個屬性裡定義我們想要的值 .
  • 8. jsTree - Metadata Import jquery.metadata.js 在 Json data 裡宣告 mdata 的屬性 在 jsTree 的 Configuration 定義 {rules : {         metadata : &quot;mdata&quot;,         use_inline : true}} 擁有 mdata 屬性的 node 會根據 mdata 裡定義的 rules 去執行
  • 9. jsTree - Others cookies 屬性 , 可以儲存當下使用者 open/close 或是 select 的 nodes 的狀態 Checkbox 的使用 使用 treeobj.create() method 會自動 check rules of creatable. 如果 creatable 不允許 root 建立 , 會影響 create() method Treeobj()
  • 11. jsTree v 0.9.9a 改版

Editor's Notes

  • #5: source/_lib/css.js - a small collection of usefull css commands (those enable fast language switching, themes, etc).