feat: GlobalMenu API
- GlobalMenu 작성용 DTO(MenuItem, MenuMulti, MenuSplit) - d_setting에 GlobalMenu를 직접 작성 가능하도록 제공
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace sammo\DTO;
|
||||
|
||||
use LDTO\Attr\NullIsUndefined;
|
||||
use LDTO\DTO;
|
||||
|
||||
class MenuItem extends DTO{
|
||||
public readonly string $type;
|
||||
|
||||
public function __construct(
|
||||
public readonly string $name,
|
||||
public readonly string $url,
|
||||
|
||||
#[NullIsUndefined]
|
||||
public ?string $icon = null,
|
||||
#[NullIsUndefined]
|
||||
public ?bool $newTab = false,
|
||||
#[NullIsUndefined]
|
||||
public ?string $condHighlightVar = null,
|
||||
#[NullIsUndefined]
|
||||
public ?string $condShowVar = null,
|
||||
){
|
||||
$this->type = 'item';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user