appconfigurator | add menumode options

This commit is contained in:
Mehmet Çetin
2025-01-06 14:20:41 +03:00
parent 8bebc68e24
commit 05d5fe0c14

View File

@@ -37,8 +37,7 @@ const presets = {
[style]="{ [style]="{
'background-color': primaryColor.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette['500'] 'background-color': primaryColor.name === 'noir' ? 'var(--text-color)' : primaryColor?.palette['500']
}" }"
> ></button>
</button>
} }
</div> </div>
</div> </div>
@@ -65,7 +64,7 @@ const presets = {
</div> </div>
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-2">
<span class="text-sm text-muted-color font-semibold">Menu Mode</span> <span class="text-sm text-muted-color font-semibold">Menu Mode</span>
<p-selectbutton [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="presets" [allowEmpty]="false" /> <p-selectbutton [ngModel]="menuMode()" (ngModelChange)="onMenuModeChange($event)" [options]="menuModeOptions" [allowEmpty]="false" />
</div> </div>
</div> </div>
</div> </div>
@@ -83,6 +82,11 @@ export class AppConfigurator {
presets = Object.keys(presets); presets = Object.keys(presets);
menuModeOptions = [
{ label: 'Static', value: 'static' },
{ label: 'Overlay', value: 'overlay' }
];
ngOnInit() { ngOnInit() {
if (isPlatformBrowser(this.platformId)) { if (isPlatformBrowser(this.platformId)) {
this.onPresetChange(this.layoutService.layoutConfig().preset); this.onPresetChange(this.layoutService.layoutConfig().preset);