# calendar

Name calendar
Type panel
Version 1.0
Since 2020-06-08

# Calendar

This panel displays calendar similar to inbox calendar view. Allow process architect to display more then one calendar (users, user groups, external) and many other options.

# Configuration

calendar:
	render: {width: 6}
	config:

		ui:

			# Optional | Default - empty
			title: "Repair assistant calendar"

			# Optional | Default - empty
			description: "All repair assistant assignments"

		events:

			# Optional | Default - []
			# Array of user IDs whose calendars we want to display
			users: [2,4,75]

			# Optional | Default - []
			# Array of user group GIDs
			# Calendar for all users from mentioned groups are displayed
			groups: [admins, technicians]

			# Optional | Default - []
			# Remote calendars are cached for brief duration
			import:
				-
					# Required
					url: https://www.example.com/calendar.ics

					# Required
					title: Vacations

					# Optional | Default - default color
					colorBackground: '#000'

					# Optional | Default - default color
					colorFont: '#fff'

		calendar:

			# Optional | Default - processAndId
			# 4 custom event title layouts available:
			# processAndId, processAndStep, detailOnly, processAndData
			layout: processAndStep

			# Optional | Default - false
			# False - show only active planned steps
			# True - show both active and complete planned steps
			history: true

			# Optional | Default - false
			# Shows weekends
			weekends: false

			# Optional | Default - 00:00
			# Determines the first time slot that will be displayed for each day
			# Format HH:MM
			startTime: 08:00

			# Optional | Default - 24:00
			# Determines the last time slot that will be displayed for each day
			# Format HH:MM
			endTime: 16:00

			# Optional | Default - 00:30
			# Event slot duration affects precision of drag and drop event editing
			# Format HH:MM
			slotDuration: 00:30

			# Optional | Default - 00:30
			# The frequency that the time slots should be labelled with text
			# It is limited by slotDuration
			# Format HH:MM
			slotLabelInterval: 00:30

			# Optional | Default - false
			# Show week numbers
			weekNumbers: false

			# Optional | Default - null
			# Height in pixels. Overflown time is scrollable
			# Null - calendar's height is unlimited (no scroll)
			height: 500

			# Optional | Default - 06:00
			# Determines how far forward the scroll pane is initially scrolled.
			# Is ignored when height is null
			scrollTime: 06:00

			mobile:

                # Optional | Default - 'day'
                # Default view on mobile
                # Accepts 'none' or 'day'
                # 'none' - no special view for mobile
                view: 'day'

		# Optional | Default - null
		# Allow resolver plan selected step within calendar
		planStep: repair

		# Optional | Default - false
		# Allows resolver to modify users planned tasks (does not apply for ICal calendars from url)
		edit: false

		# Optional | Default - true
		# Task expiration is adapted when task plan is changed
		modifyExpiration: true
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109