5
5
# Model to use for getting the records to display on the calendar
6
6
modelClass : Author\Plugin\Models\Event
7
7
8
+ # Calendar Title
9
+ title : ' backend::lang.calendar.title'
10
+
8
11
# Search columns
9
12
# Used for configuration of additional columns to search by
10
13
searchList : $/author/plugin/models/event/columns.yaml
11
14
12
15
# Record URL
13
- recordUrl : author/plugins/events/update/:event_id
14
-
16
+ recordUrl : author/plugins/events/update/:id
15
17
16
- # Record on click
17
- # @see custom.calendar.js sample
18
- # data is a plain object with the following properties:
19
- # startDate: is a JS Date Object
20
- # endDate: is a JS Date Object, may be null
21
- # event: A standard JavaScript object that FullCalendar uses to store information about a calendar event, including id, title, start, end
22
- # eventEl: The HTML element for this event
23
- # recordOnClick: $.wn.eventController.onEventClick(:data, :startDate, :endDate, :event, :eventEl)
24
-
25
- # Triggered when the user clicks on a date or a time
26
- # data is a plain object with the following properties
27
- # date: is the a JS Date Object for the clicked day/time.
28
- # dateStr: An ISO8601 string representation of the date
29
- # allDay: true or false
30
- # dayEl: An HTML element that represents the whole-day that was clicked on.
31
- # event: The native JavaScript event with low-level information such as click coordinates.
32
- # view: The current view @see https://fullcalendar.io/docs/v4/view-object
33
- onClickDate : $.wn.availabilitySlotController.onClickDate(:data, :date, :dateStr, :allDay, :dayEl, :event, :view)
34
-
35
- # The property to use as the title displayed on the calendar
18
+ # Record property used as the title displayed on the calendar
36
19
recordTitle : name
37
20
38
- # The property to use as the start time for the record
39
- recordStart : start_time
21
+ # Record property used as the start time
22
+ recordStart : start_at
23
+
24
+ # Record property used as the end time
25
+ recordEnd : end_at
40
26
41
- # The property to use as the end time for the record
42
- recordEnd : end_time
27
+ # Record property used as all day long event
28
+ recordAllDay : all_day
43
29
44
- # The property to use as the background color displayed on the record, , '' = the default background color in the calendar.less
30
+ # Record property used as the background color displayed on the record, , '' = the default background color in the calendar.less
45
31
recordColor : event_color
46
32
47
- # The property to use as the content of the tooltip for the record
33
+ # Record property used as the content of the tooltip
48
34
recordTooltip : [recordTitle]
49
35
36
+ # Calendar widget theme color for buttons ('' for default, primary or secondary)
37
+ calendarTheme :
38
+
50
39
# Available display modes to be supported in this instance
51
40
availableDisplayModes : [month, week, day, list]
52
41
42
+ # Default view for calendar widget (month, week, day or list)
43
+ initialView : month
44
+
45
+ # First day of week, 0=Sun, 1=Mon ...
46
+ firstDay : 0
47
+
53
48
# Flag for whether calendar is read only or editable
54
49
previewMode : true
55
50
56
- # load one month of records at a time, ensure they stay loaded between month pages
57
-
58
51
# Toolbar widget configuration
59
52
toolbar :
60
53
# Partial for toolbar buttons
@@ -63,7 +56,31 @@ toolbar:
63
56
# Search widget configuration
64
57
search :
65
58
prompt : backend::lang.list.search_prompt
59
+
60
+ # The filter config file for the controller
66
61
filter : calendar_filter.yaml
67
62
68
63
# when filter gets applied, clear the client's cache of events, essentially start them over
69
64
# if they had just loaded this page / month with the current filters applied
65
+
66
+
67
+ # Record on click
68
+ # @see custom.calendar.js sample
69
+ # data is a plain object with the following properties:
70
+ # startDate: is a JS Date Object
71
+ # endDate: is a JS Date Object, may be null
72
+ # event: A standard JavaScript object that FullCalendar uses to store information about a calendar event, including id, title, start, end
73
+ # eventEl: The HTML element for this event
74
+ # recordOnClick: $.wn.eventController.onEventClick(:data, :startDate, :endDate, :event, :eventEl)
75
+
76
+ # Triggered when the user clicks on a date or a time
77
+ # data is a plain object with the following properties
78
+ # date: is the a JS Date Object for the clicked day/time.
79
+ # dateStr: An ISO8601 string representation of the date
80
+ # allDay: true or false
81
+ # dayEl: An HTML element that represents the whole-day that was clicked on.
82
+ # event: The native JavaScript event with low-level information such as click coordinates.
83
+ # view: The current view @see https://fullcalendar.io/docs/v4/view-object
84
+ onClickDate : $.wn.availabilitySlotController.onClickDate(:data, :date, :dateStr, :allDay, :dayEl, :event, :view)
85
+
86
+ # load one month of records at a time, ensure they stay loaded between month pages
0 commit comments