17 lines
350 B
PHP
17 lines
350 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace zin;
|
|
|
|
class tree extends wg
|
|
{
|
|
protected function build(): zui
|
|
{
|
|
$sortable = $this->prop('sortable');
|
|
if(!empty($sortable))
|
|
{
|
|
return zui::sortableTree(set::_tag('menu'), inherit($this));
|
|
}
|
|
return zui::tree(set::_tag('menu'), inherit($this));
|
|
}
|
|
}
|