Skip to content

Commit c916c27

Browse files
committed
Update CRUDList.php
1 parent 291a7cc commit c916c27

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

wfc/ui/vuetify/CRUDList.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Ibrahim BinAlshikh
1313
*/
1414
class CRUDList extends HTMLNode {
15+
private $vlist;
1516
/**
1617
*
1718
* @var Dialog
@@ -125,10 +126,19 @@ public function __construct($props) {
125126
$this->getConfirmDeleteDialog()->getToolbar()->addChild('v-toolbar-title')->text($deleteDialogTitle);
126127

127128
}
129+
/**
130+
* Returns the v-list element that contains list items.
131+
*
132+
* @return HTMLNode
133+
*/
134+
public function getVList() {
135+
return $this->vlist;
136+
}
128137
private function createBody($props) {
129-
$itemsGroup = $this->addChild('v-card-text')->addChild('v-list', [
138+
$this->vlist = $this->addChild('v-card-text')->addChild('v-list', [
130139
'dense',
131-
])->addChild('v-list-item-group',[
140+
]);
141+
$itemsGroup = $this->vlist->addChild('v-list-item-group',[
132142

133143
]);
134144
$itemsGroup->addChild('v-list-item', [

0 commit comments

Comments
 (0)