Skip to content

Commit 6065b1d

Browse files
committed
feat: button refresh api
1 parent 0639087 commit 6065b1d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Html/Button.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,4 +459,18 @@ public function __call($method, $parameters)
459459

460460
return $this;
461461
}
462+
463+
/**
464+
* Request that the data be refreshed from the server when starting an edit.
465+
*
466+
* @return $this
467+
*
468+
* @see https://editor.datatables.net/reference/type/form-options#refresh
469+
*/
470+
public function refresh(bool $value = true): static
471+
{
472+
$this->attributes['refresh'] = $value;
473+
474+
return $this;
475+
}
462476
}

0 commit comments

Comments
 (0)