EasyUI Forum
September 19, 2025, 09:33:21 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Hope idField,treeField properties can be set in a Tree  (Read 11147 times)
kingor2001
Jr. Member
**
Posts: 61


View Profile
« 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


View Profile Email
« 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


View Profile
« Reply #2 on: February 20, 2016, 05:07:38 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


View Profile Email
« 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


View Profile
« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!