-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.php
More file actions
67 lines (59 loc) · 1.9 KB
/
Copy pathconfig.php
File metadata and controls
67 lines (59 loc) · 1.9 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
<?php
/**
* @copyright Copyright (c) PutYourLightsOn
*/
/**
* Datastar config.php
*
* This file exists only as a template for the Datastar settings.
* It does nothing on its own.
*
* Don't edit this file, instead copy it to 'craft/config' as 'datastar.php'
* and make your changes there to override default settings.
*
* Once copied to 'craft/config', this file will be multi-environment aware as
* well, so you can have different settings groups for each environment, just as
* you do for 'general.php'
*/
return [
'*' => [
/**
* Whether to register the Datastar script on the frontend.
*/
'registerScript' => true,
/**
* Whether the session should be closed when the event stream begins.
* This is useful to allow other requests to be processed while the event stream is being sent.
*/
'shouldCloseSession' => false,
/**
* The name of the signals variable that will be injected into Datastar templates.
*/
'signalsVariableName' => 'signals',
/**
* The event options to override the Datastar defaults. Null values will be ignored.
*/
'defaultEventOptions' => [
'retryDuration' => null,
],
/**
* The element options to override the Datastar defaults. Null values will be ignored.
*/
'defaultElementOptions' => [
'useViewTransition' => null,
],
/**
* The signal options to override the Datastar defaults. Null values will be ignored.
*/
'defaultSignalOptions' => [
'onlyIfMissing' => null,
],
/**
* The execute script options to override the Datastar defaults. Null values will be ignored.
*/
'defaultExecuteScriptOptions' => [
'autoRemove' => null,
'attributes' => null,
],
],
];