laszlo grid自定义

<canvas width="800" debug="true">
<class name="downloadgrid" datapath="" width="510" height="200">
<view name="bg" width="$once{parent.width}" height="$once{parent.height}" bgcolor="#666666"/>
<view name="whitebg" x="1" y="1" width="$once{parent.width-2}" height="$once{parent.height-2}" bgcolor="#FFFFFF"/>
<view name="header" x="1" y="2" width="$once{parent.width-2}" height="18" bgcolor="#87CEFA">

<text x="0" text="ID" />
<text x="40" text="名称" />
<text x="174" text="描述" />
<text x="344" text="分类"/>
<text x="434" text="链接" />
</view>
<view name="rowcontainer" x="1" y="20" datapath="${parent.datapath}" width="$once{parent.width-2}" height="$once{parent.height-22}" clip="true">
<view name="columns" datapath="${parent.datapath}" width="$once{parent.width-2}">
<simplelayout axis="y" spacing="1"/>
<view datapath="*" width="$once{parent.width}" height="18" bgcolor="#F5F5F5">
<text x="0" datapath="@id" width="38"/>
<text x="40" datapath="@name" width="130"/>
<text x="174" datapath="@describe" width="166"/>
<text x="344" datapath="@category" width="76"/>
<text x="434" datapath="@status" width="80" fgcolor="#0000ff">
<method event="onclick">
var hashref = parent.datapath.p.hasAttr('href');
if(hashref){
var address = parent.datapath.p.getAttr('href');
LzBrowser.loadURL(address, '_blank')
}
</method>
<method event="onmouseover">
this.setColor(0x000000);
</method>
<method event="onmouseout">
this.setColor(0x0000FF);
</method>
</text>
</view>
</view>
<scrollbar/>
</view>
</class>

<debug x="450" y="0" height="300"/>

<downloadgrid />
</canvas>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值