29 lines
594 B
PHP
Executable File
29 lines
594 B
PHP
Executable File
<?php
|
|
|
|
return [
|
|
'props' => [
|
|
/**
|
|
* Sets the text for the empty state box
|
|
*/
|
|
'empty' => function ($empty = null) {
|
|
return I18n::translate($empty, $empty);
|
|
}
|
|
],
|
|
'methods' => [
|
|
'isFull' => function () {
|
|
if ($this->max) {
|
|
return $this->total >= $this->max;
|
|
}
|
|
|
|
return false;
|
|
},
|
|
'validateMax' => function () {
|
|
if ($this->max && $this->max < $this->total) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
]
|
|
];
|