Skip to content

Commit

Permalink
Update VDataTable.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Aug 31, 2022
1 parent c051760 commit ede4256
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wfc/ui/vuetify/VDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(array $attrs = []) {
parent::__construct('v-data-table', $attrs);
$this->setAttributes([
'hide-default-footer',
':items-per-page' => 'page.size'
]);

$this->footer = $this->addChild('template', [
Expand Down Expand Up @@ -58,6 +59,8 @@ public function __construct(array $attrs = []) {
* Sets the name of JavaScript function that will be get executed when
* page number input changes value.
*
* Note that the first parameter of the function will be page number.
*
* @param string $func
*/
public function setOnPageNumberClick(string $func) {
Expand Down

0 comments on commit ede4256

Please sign in to comment.