generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 146
Expand file tree
/
Copy pathInteractsWithRawJS.php
More file actions
130 lines (120 loc) · 2.87 KB
/
InteractsWithRawJS.php
File metadata and controls
130 lines (120 loc) · 2.87 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
namespace Saade\FilamentFullCalendar\Widgets\Concerns;
trait InteractsWithRawJS
{
/**
* A ClassName Input for adding classNames to the outermost event element.
* If supplied as a callback function, it is called every time the associated event data changes.
*
* @see https://fullcalendar.io/docs/event-render-hooks
*
* @return string
*/
public function eventClassNames(): string
{
return <<<JS
null
JS;
}
/**
* A Content Injection Input. Generated content is inserted inside the inner-most wrapper of the event element.
* If supplied as a callback function, it is called every time the associated event data changes.
*
* @see https://fullcalendar.io/docs/event-render-hooks
*
* @return string
*/
public function eventContent(): string
{
return <<<JS
null
JS;
}
/**
* Called right after the element has been added to the DOM. If the event data changes, this is NOT called again.
*
* @see https://fullcalendar.io/docs/event-render-hooks
*
* @return string
*/
public function eventDidMount(): string
{
return <<<JS
null
JS;
}
/**
* Called right before the element will be removed from the DOM.
*
* @see https://fullcalendar.io/docs/event-render-hooks
*
* @return string
*/
public function eventWillUnmount(): string
{
return <<<JS
null
JS;
}
/**
* Triggered when the user mouses over an event. Similar to the native mouseenter.
*
* @see https://fullcalendar.io/docs/eventMouseEnter
*
* @return string
*/
public function eventMouseEnter(): string
{
return <<<JS
null
JS;
}
/**
* Triggered when the user mouses out of an event. Similar to the native mouseleave.
*
* @see https://fullcalendar.io/docs/eventMouseLeave
*
* @return string
*/
public function eventMouseLeave(): string
{
return <<<JS
null
JS;
}
/**
* The URL for fetching calendar resources.
*
* @see https://fullcalendar.io/docs/resource-source
*
* @return string
*/
public function getResourceUrl(): string
{
return '';
}
/**
* The HTTP method for fetching calendar resources.
*
* @see https://fullcalendar.io/docs/resource-source
*
* @return string
*/
public function getResourceMethod(): string
{
return 'GET';
}
/**
* Extra parameters to pass when fetching calendar resources.
*
* @see https://fullcalendar.io/docs/resource-source
*
* @return string
*/
public function getResourceExtraParams(): string
{
return <<<JS
null
JS;
}
}