mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
feat(collections): add calendar as a standalone template
This commit is contained in:
parent
035b72a08d
commit
0d3c5b06e2
@ -27,6 +27,55 @@ export default function buildHiddenSubtreeTemplates() {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "_template_calendar",
|
||||||
|
type: "book",
|
||||||
|
title: "Calendar",
|
||||||
|
icon: "bx bx-calendar",
|
||||||
|
attributes: [
|
||||||
|
{
|
||||||
|
name: "template",
|
||||||
|
type: "label",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "collection",
|
||||||
|
type: "label"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "viewType",
|
||||||
|
type: "label",
|
||||||
|
value: "calendar"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "hidePromotedAttributes",
|
||||||
|
type: "label"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "label:startDate",
|
||||||
|
type: "label",
|
||||||
|
value: "promoted,alias=Start Date,single,date",
|
||||||
|
isInheritable: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "label:endDate",
|
||||||
|
type: "label",
|
||||||
|
value: "promoted,alias=End Date,single,date",
|
||||||
|
isInheritable: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "label:startTime",
|
||||||
|
type: "label",
|
||||||
|
value: "promoted,alias=Start Time,single,time",
|
||||||
|
isInheritable: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "label:endTime",
|
||||||
|
type: "label",
|
||||||
|
value: "promoted,alias=End Time,single,time",
|
||||||
|
isInheritable: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "_template_table",
|
id: "_template_table",
|
||||||
type: "book",
|
type: "book",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user