mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-30 02:52:22 +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">
|
<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>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue