Skip to content

Commit 0639087

Browse files
committed
feat: add refresh api
1 parent 869b050 commit 0639087

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Html/Editor/FormOptions.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,18 @@ public function title(bool|string $value): static
205205

206206
return $this;
207207
}
208+
209+
/**
210+
* Request that the data be refreshed from the server when starting an edit.
211+
*
212+
* @return $this
213+
*
214+
* @see https://editor.datatables.net/reference/type/form-options#refresh
215+
*/
216+
public function refresh(bool $value = true): static
217+
{
218+
$this->attributes['refresh'] = $value;
219+
220+
return $this;
221+
}
208222
}

0 commit comments

Comments
 (0)