Navigator tool可以显示通过frontend-config.js文件定义的自定义表。 quickstart example包含一个定义自定义合同列表的文件。
是否还可以显示模板的自定义列表?
答案 0 :(得分:0)
要添加模板的自定义列表,请使用source.type=="templates"
添加自定义视图。
以下是自定义视图的示例,该视图将列出所有模板ID中包含“ Iou:Iou”的模板:
iouTemplates: {
type: "table-view",
title: "Iou Templates",
source: {
type: "templates",
filter: [
{
field: "id",
value: "Iou:Iou",
}
],
search: "",
sort: [
{
field: "id",
direction: "ASCENDING"
}
]
},
columns: [
{
key: "id",
title: "Template ID",
createCell: ({rowData}) => ({
type: "text",
value: rowData.id
}),
sortable: true,
width: 80,
weight: 0,
alignment: "left"
}
]
}