Adjust WidgetPanelComponent inputs

This commit is contained in:
Clemente Raposo 2024-11-06 13:01:02 +00:00 committed by Jack Anderson
parent 0d08d6a343
commit 199bda9b4d
2 changed files with 6 additions and 2 deletions

View file

@ -26,7 +26,7 @@
*/ */
--> -->
<div class="accordion widget-panel mr-0 shadow-sm"> <div class="accordion widget-panel mr-0 shadow-sm">
<scrm-panel [mode]="mode" [title]="title" bodyPadding="0"> <scrm-panel [mode]="mode" [title]="title" [titleKey]="titleKey" [showHeader]="showHeader" bodyPadding="0">
<span panel-icon-area> <span panel-icon-area>
<ng-content select="[widget-header-icon-area]"></ng-content> <ng-content select="[widget-header-icon-area]"></ng-content>
</span> </span>

View file

@ -27,6 +27,8 @@
import {Component, Input, OnInit} from '@angular/core'; import {Component, Input, OnInit} from '@angular/core';
import {animate, style, transition, trigger} from '@angular/animations'; import {animate, style, transition, trigger} from '@angular/animations';
import {LanguageStore} from '../../store/language/language.store'; import {LanguageStore} from '../../store/language/language.store';
import {PanelCollapseMode} from "../panel/panel.component";
@Component({ @Component({
selector: 'scrm-widget-panel', selector: 'scrm-widget-panel',
@ -57,7 +59,9 @@ import {LanguageStore} from '../../store/language/language.store';
export class WidgetPanelComponent implements OnInit { export class WidgetPanelComponent implements OnInit {
@Input() title = ''; @Input() title = '';
@Input() mode: 'collapsible' | 'closable' | 'none' = 'none'; @Input() titleKey = '';
@Input() showHeader = true;
@Input() mode: PanelCollapseMode;
displayContent = true; displayContent = true;