aardio 文档

aardio 范例: 列表视图(listview)控件 - 数据表

//列表视图(listview)控件 - 数据表
import win.ui;
/*DSG{{*/
var winform = win.form(text="listview 加载并显示行列数据表";right=757;bottom=467)
winform.add(
listview={cls="listview";left=11;top=11;right=737;bottom=393;z=1}
)
/*}}*/

//加载数据表,数据行是数组
winform.listview.setTable({
    {"a","b","c"},
    {"d","e",1234567}
})

//加载数据表,数据行是键值对
winform.listview.setTable({
    {"a":12,"b":45,"c":78},
    {"a":123,"b":456,"c":789}
}) 

winform.show();

win.loopMessage();
Markdown 格式