EasyUI 各种json数据格式

摘要:
EasyUI中,用到的各种数据的json数据格式1.combobox  [{"id":1,"text":"text1"},{"id":2,"text":"text2"},{"id":3,"text":"text3","selected":true},{"id":4,"text":"text4"},{"id":5,"text":"text5"}]ViewCode2.datagrid[{"code":

EasyUI中,用到的各种数据的json数据格式

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":"Bil@gmail.com",
    "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

免责声明:文章转载自《EasyUI 各种json数据格式》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇c# ffmpeg常用参数3.Springboot之修改启动时的默认图案Banner下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

随便看看

CentOS7 初始化配置

允许新TCP连接net.ipv4.TCP _ tw_ reuse=1net.ipv4.TCP _ mem=945000009150000009270000000net.ipv4 TCP _ fin_ Timeout=1#启用keepalive时,TCP发送keepalive消息的频率。默认值为2小时net.ipv4.tcp _keepalive_Time=3...

Jdk升级到11引起的问题:程序包javax.xml.bind.annotation不存在

您可以看到ELDict类中有一个引用:importjavax。xml。绑定注释XmlAttribute;虽然未使用,但它会导致mvn编译错误。在在线绑定中搜索“包javax.xml.bind.nannotation不存在”。结果是:包javax。xml。bind Annotation不存在-CSDN论坛2009年12月2日·无法编译使用jaxb的类,因为软件...

layui 学习笔记(四) 复杂表头前台Excel导出

merges':mergeConf,'!cols':colConf,'!rows‘:rowConf}});}@...

【JVM】元空间详解 Metaspace

nocs。JpgNoKlassisMetaspaceNoKlassinMetaspaces专用于存储其他与klass相关的内容,如方法、常量池等。它可以由多个不连续的存储器组成。在元空间GC之后,还将调整阈值。默认情况下,MaxMetaspaceSize基本上是无限的,因为大多数元空间都是在本地内存中分配的,但它仍然受到本地内存大小的限制。为了防止元空间的无...

windows下如何查看和修改MySQL的端口号

更改为要设置的新端口号。4.在桌面上找到“我的电脑”,右键单击并选择“管理”5.找到“服务和应用程序”并双击6.继续双击“服务”7.在列表中找到“MySQL”,右击并选择“重新启动”8.等待重新启动完成,然后按照我们刚才用来查看MySQL端口号的方法查看更改是否成功。如图所示,3396是我更改的端口号。...