Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/Html/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
14 changes: 14 additions & 0 deletions src/Html/Editor/FormOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}