JSON data format for various data used in Easyui
1. ComboBox
"id": 1"text": "Text1""id": 2"text": "Text2""id": 3"text": "Text3" "selected":true"id": 4"text": "Text4""id": 5"text": " Text5 "
View Code
2. DataGrid
[{ "Code": "001", "Name": "Name1", "Addr": "Address1", "Col4": "Col41"},{ "Code": "002", "Name": "Name2", "Addr": "Address2", "Col4": "Col42"},{ "Code": "003", "Name": "Name3", "Addr": "ADDRESS3", "Col4": "Col43"},{ "Code": "004", "Name": "Name4", "Addr": "Address4", "Col4": "Col44"},{ "Code": "005", "Name": "Name5", "Addr": "ADDRESS5", "Col4": "Col45"}]
View Code
3. Tree
[{ "id": 1, "Text": "Folder1", "Iconcls": "Icon-ok", "Children":[{ "ID": 2, "Text": "File1", "Checked":true },{ "ID": 3, "Text": "Folder2", "State": "Open", "Children":[{ "ID": 4, "Text": "File3", "Attributes":{ "P1": "Value1", "P2": "value2" }, "Checked":true, "Iconcls": "Icon-reload" },{ "ID": 8, "Text": "Async Folder", "State": "Closed" }] }]},{ "Text": "Language", "State": "Closed", "Children":[{ "id": "J1", "Text": "Java" },{ "id": "J2", "Text": "C #" }]}]
View Code
4. PropertyGrid
[{ "Name": "Name", "Value": "Bill Smith", "Group": "ID Settings", "Editor": "Text"},{ "Name": "Address", "Value": "", "Group": "ID Settings", "Editor": "Text"},{ "Name": "Age", "Value": "40", "Group": "ID Settings", "Editor": "Text"},{ "Name": "Birthday", "Value": "01/02/2012", "Group": "ID Settings", "Editor": "Datebox"},{ "Name": "SSN", "Value": "123-456-7890", "Group": "ID Settings", "Editor": "Text"},{ "Name": "Email", "Value": "[email protected]", "Group": "Marketing Settings", "Editor":{ "Type:": "Validatebox", "Options": "Email" }},{ "Name": "Frequentbuyer", "Value":false, "Group": "Marketing Settings", "Editor":{ ' Type ': ' checkbox ', "Options": {"on":true, "Off": "false"} }}]
View Code
5. Treegrid
[{ "id": 1, "Region": "Wyoming", "Children":[{ "id": 11, "Region": "Albin", "091": "1800", "092": "1800", "093": "1903", "094": "2193", "101": "2133", "102": "1923", "103": "2018", "104": "1928" },{ "id": 12, "Region": "Canon", "091": "1800", "092": "1800", "093": "1903", "094": "2193", "101": "2133", "102": "1923", "103": "2018", "104": "1928" },{ "id": 13, "Region": "Egbert", "091": "1800", "092": "1800", "093": "1903", "094": "2193", "101": "2133", "102": "1923", "103": "2018", "104": "1928" }]},{ "ID": 2, "Region": "Washington", "Children":[{ "id": 21, "Region": "Bellingham", "091": "1800", "092": "1800", "093": "1903", "094": "2193", "101": "2133", "102": "1923", "103": "2018", "104": "1928" },{ "id": 22, ' Region ': ' Other ', "091": "1800", "092": "1800", "093": "1903", "094": "2193", "101": "2133", "102": "1923", "103": "2018", "104": "1928" }]}]
View Code