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:{}}}