24 lines
493 B
PHP
24 lines
493 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace zin;
|
|
|
|
require_once dirname(__DIR__) . DS . 'section' . DS . 'v1.php';
|
|
|
|
class sectionList extends wg
|
|
{
|
|
public function onBuildItem(wg $item): wg
|
|
{
|
|
return new section(inherit($item));
|
|
}
|
|
|
|
protected function build(): wg
|
|
{
|
|
return div
|
|
(
|
|
setClass('section-list', 'canvas', 'col', 'gap-6', 'pt-4', 'px-6', 'pb-6'),
|
|
set($this->getRestProps()),
|
|
$this->children()
|
|
);
|
|
}
|
|
}
|