EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 19, 2025, 09:33:21 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Hope idField,treeField properties can be set in a Tree
Pages: [
1
]
« previous
next »
Print
Author
Topic: Hope idField,treeField properties can be set in a Tree (Read 11147 times)
kingor2001
Jr. Member
Posts: 61
Hope idField,treeField properties can be set in a Tree
«
on:
February 19, 2016, 10:57:13 PM »
idField,treeField properties can be set in a TreeGrid, I hope these two attributes can also be realized in the Tree,thanks.
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Hope idField,treeField properties can be set in a Tree
«
Reply #1 on:
February 20, 2016, 02:23:58 AM »
The 'id' and 'text' properties are available in tree component.
Logged
kingor2001
Jr. Member
Posts: 61
Re: Hope idField,treeField properties can be set in a Tree
«
Reply #2 on:
February 20, 2016, 05:07:38 AM »
Quote from: stworthy on February 20, 2016, 02:23:58 AM
The 'id' and 'text' properties are available in tree component.
Thanks.
I use <ul id="myTree" data-options="id:'myId',text:'myText'"></ul>, json:[{myId:1, myText:'test'}],
but it doesn't work.
«
Last Edit: February 20, 2016, 05:19:45 AM by kingor2001
»
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Hope idField,treeField properties can be set in a Tree
«
Reply #3 on:
February 20, 2016, 09:37:47 AM »
The node data should be:
Code:
[{id:1, text:'test'}]
Logged
kingor2001
Jr. Member
Posts: 61
Re: Hope idField,treeField properties can be set in a Tree
«
Reply #4 on:
February 21, 2016, 04:10:09 AM »
Hope that 'id' and 'text' not fixed, but can be set, just like 'idField' and 'treefield' in the treegrid.
Thanks.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...