mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 20:50:13 +08:00
Adjust WidgetPanelComponent inputs
This commit is contained in:
parent
0d08d6a343
commit
199bda9b4d
2 changed files with 6 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
-->
|
||||
<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>
|
||||
<ng-content select="[widget-header-icon-area]"></ng-content>
|
||||
</span>
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
import {Component, Input, OnInit} from '@angular/core';
|
||||
import {animate, style, transition, trigger} from '@angular/animations';
|
||||
import {LanguageStore} from '../../store/language/language.store';
|
||||
import {PanelCollapseMode} from "../panel/panel.component";
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'scrm-widget-panel',
|
||||
|
@ -57,7 +59,9 @@ import {LanguageStore} from '../../store/language/language.store';
|
|||
|
||||
export class WidgetPanelComponent implements OnInit {
|
||||
@Input() title = '';
|
||||
@Input() mode: 'collapsible' | 'closable' | 'none' = 'none';
|
||||
@Input() titleKey = '';
|
||||
@Input() showHeader = true;
|
||||
@Input() mode: PanelCollapseMode;
|
||||
|
||||
displayContent = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue