为ListGrid
使用静态数据时,DataSource
为clientOnly:true
是否有可能获得DataSource
来自动将字符串日期强制转换为js Date
?
这是一个例子
isc.ListGrid.create({
height: "100%",
width: "100%",
border: "none",
dataSource: isc.DataSource.create({
clientOnly: true,
fields: [
{ name: "paymentDate", title: "Payment Date", type: "date" },
{ name: "paymentAmount", title: "Payment Amount", type: "text" }
],
cacheData: [
{ paymentAmount: 500, paymentDate: "2019-02-11T08:56:57.193" }
]
})
});