We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abc6162 + ecf0f13 commit de0e7c4Copy full SHA for de0e7c4
src/Html/Editor/Fields/Field.php
@@ -360,4 +360,18 @@ public function getType(): string
360
{
361
return $this->type;
362
}
363
+
364
+ /**
365
+ * Replace null values with the field's default on edit.
366
+ *
367
+ * @param bool $value
368
+ * @return $this
369
+ * @see https://editor.datatables.net/reference/option/fields.nullDefault
370
+ */
371
+ public function nullDefault(bool $value = true): static
372
+ {
373
+ $this->attributes['nullDefault'] = $value;
374
375
+ return $this;
376
+ }
377
0 commit comments