EasyUI Forum

General Category => EasyUI for Angular => Topic started by: Swany on June 25, 2018, 12:43:53 PM



Title: Newest Version (1.0.6) Messager Component is Throwing an Error
Post by: Swany on June 25, 2018, 12:43:53 PM
I am using the npm install package and the messager component is throwing an error, it is trying to call a method that doesn’t exist (isBodyCollapsed). A search of the code shows this method is only called from the messager component so defect should only affect this component.

If I go back to a downloaded old copy of easy ui (1.1.4) this method used to exist on the panel component but I’m not sure when it was removed/disappeared, from panel.component.d.ts: 

import { QueryList, ElementRef } from '@angular/core';
import { PanelHeaderComponent } from './panel-header.component';
import { PanelFooterComponent } from './panel-footer.component';
export declare const PANEL_TEMPLATE: string;
export declare class PanelComponent {
    hostRef: ElementRef;
    panelRef: ElementRef;
    headerRef: ElementRef;
    bodyRef: ElementRef;
    footerRef: ElementRef;
    headers: QueryList<PanelHeaderComponent>;
    footers: QueryList<PanelFooterComponent>;
    title: string;
    iconCls: string;
    border: boolean;
    closed: boolean;
    collapsed: boolean;
    collapsible: boolean;
    closable: boolean;
    showHeader: boolean;
    showFooter: boolean;
    expandIconCls: string;
    collapseIconCls: string;
    closeIconCls: string;
    panelCls: string;
    panelStyle: Object;
    headerCls: string;
    headerStyle: Object;
    bodyCls: string;
    bodyStyle: Object;
    footerCls: string;
    footerStyle: Object;
    collapseToShrinkBody: boolean;
    readonly hasHeader: boolean;
    readonly hasFooter: boolean;
    isBodyCollapsed(): boolean;
    constructor(hostRef: ElementRef);
    onClickCollapsibleTool(event: any): void;
    onClickCloseTool(event: any): void


Title: Re: Newest Version (1.0.6) Messager Component is Throwing an Error
Post by: jarry on June 25, 2018, 05:12:14 PM
The 'isBodyCollapsed' method is depreciated and is replaced with 'euiSlideUpDown' directive. Please update to the newest version.


Title: Re: Newest Version (1.0.6) Messager Component is Throwing an Error
Post by: Swany on July 09, 2018, 11:43:14 AM
Upgrade worked.

Thanks Jarry