Schedule view
Description
Display a user schedule based on configuration.
Attributes
tile:scheduleViewtitleoptions: [Object]rootClasses: Provide a Classes for the roothideSwitch: true | false. Indicate display a [grid | list] switch in scheduleView or not.startingView: Grid | list.
filter: [Object]tracker: Provide a tracker handle to filter out the datamatch: Provide a Match criteria in terms of time expressiontrackers: [Array] Provide a list of trackers handcondition: Provide a Valid condition ruleentryCondition:
completions: [Object]tracker: Provide a tracker handle to filter out the datamatch: Provide a Match criteria in terms of time expressiontrackers: [Array] Provide a list of trackers handcondition: Provide a Valid condition ruleentryCondition:
connect: [connection objects]source: Data Source path
addSchedule: [Object]tracker: Provide a tracker id for which want add schedule
action: [Array]merge: [Array of Objects]$range: [Array]
tracker: Provide a tracker handle to for dispatching data when click on schedule
schedule: [Array of objects]icon: Provide a icon to-be display in the menu listcolor:attribute: Provide a tracker attributetitleprefixdirectiontracker: Provide a tracker handle for the dispatcheschart: Provide a charts namechartAttributechartTitlecomplete: complete criteriafailstartstartActual: Provide a text for the ActualstartPlanned: Provide a text for the PlannedmappingfailediconPendingiconCompleteiconProgresscolorRules: [Object] Provide a color based on rule.rule: Valid Conditional Rulecolor: Valid Color code
displayIdiconAdhoc
Example1
{
"tile": "scheduleView",
"contextMenu": "594f17cb-def7-4acd-8296-614278dfc2da",
"options": {
"rootClasses": "mx-2",
"hideSwitch": true,
"startingView": "grid"
},
"filter": {
"tracker": "wellness",
"match": "YYYY-MM-DD"
},
"completions": {
"trackers": [
"user-details",
"wellness"
],
"match": "YYYY-MM-DD",
"iconComplete": "fal fa-check-square",
"iconPending": "fal fa-square",
"titlePlanned": "予定",
"titleActual": "実情"
},
"connect": {
"source": "$store"
},
"addSchedule": {
"tracker": "schedule"
},
"action": {
"tracker": "schedule",
"merge": {
"$range": [
"actual",
"scheduled"
]
}
},
"schedule": [
{
"title": "朝食",
"tracker": "medicine-entry",
"attribute": "breakfast",
"icon": "fal fa-coffee",
"color": "#d60000",
"chart": "donut",
"complete": "values.medicineName is exists"
},
{
"title": "仕事",
"attribute": "work",
"tracker": "medicine-entry",
"icon": "fal fa-briefcase",
"color": "#ffc000",
"chart": "donut",
"iconProgress": "fal fa-square",
"complete": "values.medicineName is exists"
}
]
}
Note
Here for contextMenu need to create a context from admin -> navigation -> context -> contextId. In which describe all the menu list which you want to display when click on the scheduleView.
{
"list": [
{
"resource": "form.name",
"target": "post",
"icon": "fad fa-house-day",
"options": {
"tracker": "wellness"
},
"title": "Wellness",
"condition": "true",
"_id": "68"
},
{
"resource": "form.name",
"target": "post",
"icon": "fad fa-house-day",
"options": {
"tracker": "user-details"
},
"title": "User Details",
"_id": "337",
"condition": "true"
}
]
}