diff --git a/src/Html/Button.php b/src/Html/Button.php
index 0823962..3ff1c43 100755
--- a/src/Html/Button.php
+++ b/src/Html/Button.php
@@ -459,4 +459,18 @@ public function __call($method, $parameters)
return $this;
}
+
+ /**
+ * Request that the data be refreshed from the server when starting an edit.
+ *
+ * @return $this
+ *
+ * @see https://editor.datatables.net/reference/type/form-options#refresh
+ */
+ public function refresh(bool $value = true): static
+ {
+ $this->attributes['refresh'] = $value;
+
+ return $this;
+ }
}
diff --git a/src/Html/Editor/FormOptions.php b/src/Html/Editor/FormOptions.php
index 03c149c..fe4758e 100644
--- a/src/Html/Editor/FormOptions.php
+++ b/src/Html/Editor/FormOptions.php
@@ -205,4 +205,18 @@ public function title(bool|string $value): static
return $this;
}
+
+ /**
+ * Request that the data be refreshed from the server when starting an edit.
+ *
+ * @return $this
+ *
+ * @see https://editor.datatables.net/reference/type/form-options#refresh
+ */
+ public function refresh(bool $value = true): static
+ {
+ $this->attributes['refresh'] = $value;
+
+ return $this;
+ }
}