@@ -19,10 +19,11 @@ public static function make(array $attributes = []): static
19
19
}
20
20
21
21
/**
22
- * @param int $value
22
+ * @param int|string|null $value
23
23
* @return $this
24
+ * @see https://editor.datatables.net/reference/type/form-options#focus
24
25
*/
25
- public function focus (int $ value = 0 ): static
26
+ public function focus (int | string $ value = null ): static
26
27
{
27
28
$ this ->attributes ['focus ' ] = $ value ;
28
29
@@ -32,17 +33,19 @@ public function focus(int $value = 0): static
32
33
/**
33
34
* @param bool $value
34
35
* @return $this
36
+ * @see https://editor.datatables.net/reference/type/form-options#nest
35
37
*/
36
- public function message (bool $ value = false ): static
38
+ public function nest (bool $ value ): static
37
39
{
38
- $ this ->attributes ['message ' ] = $ value ;
40
+ $ this ->attributes ['nest ' ] = $ value ;
39
41
40
42
return $ this ;
41
43
}
42
44
43
45
/**
44
46
* @param string $value
45
47
* @return $this
48
+ * @see https://editor.datatables.net/reference/type/form-options#onBackground
46
49
*/
47
50
public function onBackground (string $ value = 'blur ' ): static
48
51
{
@@ -54,6 +57,7 @@ public function onBackground(string $value = 'blur'): static
54
57
/**
55
58
* @param string $value
56
59
* @return $this
60
+ * @see https://editor.datatables.net/reference/type/form-options#onBlur
57
61
*/
58
62
public function onBlur (string $ value = 'close ' ): static
59
63
{
@@ -65,6 +69,7 @@ public function onBlur(string $value = 'close'): static
65
69
/**
66
70
* @param string $value
67
71
* @return $this
72
+ * @see https://editor.datatables.net/reference/type/form-options#onComplete
68
73
*/
69
74
public function onComplete (string $ value = 'close ' ): static
70
75
{
@@ -76,6 +81,7 @@ public function onComplete(string $value = 'close'): static
76
81
/**
77
82
* @param string $value
78
83
* @return $this
84
+ * @see https://editor.datatables.net/reference/type/form-options#onEsc
79
85
*/
80
86
public function onEsc (string $ value = 'close ' ): static
81
87
{
@@ -87,6 +93,7 @@ public function onEsc(string $value = 'close'): static
87
93
/**
88
94
* @param string $value
89
95
* @return $this
96
+ * @see https://editor.datatables.net/reference/type/form-options#onFieldError
90
97
*/
91
98
public function onFieldError (string $ value = 'focus ' ): static
92
99
{
@@ -98,6 +105,7 @@ public function onFieldError(string $value = 'focus'): static
98
105
/**
99
106
* @param string $value
100
107
* @return $this
108
+ * @see https://editor.datatables.net/reference/type/form-options#onReturn
101
109
*/
102
110
public function onReturn (string $ value = 'submit ' ): static
103
111
{
@@ -109,6 +117,7 @@ public function onReturn(string $value = 'submit'): static
109
117
/**
110
118
* @param string $value
111
119
* @return $this
120
+ * @see https://editor.datatables.net/reference/type/form-options#submit
112
121
*/
113
122
public function submit (string $ value = 'changed ' ): static
114
123
{
@@ -118,34 +127,84 @@ public function submit(string $value = 'changed'): static
118
127
}
119
128
120
129
/**
121
- * @param bool $value
130
+ * @param string $value
122
131
* @return $this
132
+ * @see https://editor.datatables.net/reference/type/form-options#scope
123
133
*/
124
- public function title ( bool $ value = false ): static
134
+ public function scope ( string $ value = ' row ' ): static
125
135
{
126
- $ this ->attributes ['title ' ] = $ value ;
136
+ $ this ->attributes ['scope ' ] = $ value ;
127
137
128
138
return $ this ;
129
139
}
130
140
131
141
/**
132
- * @param bool $value
142
+ * @param array|string $value
143
+ * @return $this
144
+ * @see https://editor.datatables.net/reference/type/form-options#buttons
145
+ */
146
+ public function buttons (array |string $ value ): static
147
+ {
148
+ $ this ->attributes ['buttons ' ] = $ value ;
149
+
150
+ return $ this ;
151
+ }
152
+ /**
153
+ * @param string $value
133
154
* @return $this
155
+ * @see https://editor.datatables.net/reference/type/form-options#drawType
134
156
*/
135
- public function drawType (bool $ value = false ): static
157
+ public function drawType (string $ value = '' ): static
136
158
{
137
159
$ this ->attributes ['drawType ' ] = $ value ;
138
160
139
161
return $ this ;
140
162
}
141
163
164
+ /**
165
+ * @param bool|string $value
166
+ * @return $this
167
+ * @see https://editor.datatables.net/reference/type/form-options#message
168
+ */
169
+ public function message (bool |string $ value = '' ): static
170
+ {
171
+ $ this ->attributes ['message ' ] = $ value ;
172
+
173
+ return $ this ;
174
+ }
175
+
176
+ /**
177
+ * @param int|string $value
178
+ * @return $this
179
+ * @see https://editor.datatables.net/reference/type/form-options#submitTrigger
180
+ */
181
+ public function submitTrigger (int |string $ value ): static
182
+ {
183
+ $ this ->attributes ['submitTrigger ' ] = $ value ;
184
+
185
+ return $ this ;
186
+ }
187
+
142
188
/**
143
189
* @param string $value
144
190
* @return $this
191
+ * @see https://editor.datatables.net/reference/type/form-options#submitHtml
145
192
*/
146
- public function scope (string $ value = ' row ' ): static
193
+ public function submitHtml (string $ value ): static
147
194
{
148
- $ this ->attributes ['scope ' ] = $ value ;
195
+ $ this ->attributes ['submitHtml ' ] = $ value ;
196
+
197
+ return $ this ;
198
+ }
199
+
200
+ /**
201
+ * @param bool|string $value
202
+ * @return $this
203
+ * @see https://editor.datatables.net/reference/type/form-options#title
204
+ */
205
+ public function title (bool |string $ value ): static
206
+ {
207
+ $ this ->attributes ['title ' ] = $ value ;
149
208
150
209
return $ this ;
151
210
}
0 commit comments