EasyUI Forum
May 04, 2024, 01:38:21 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Newest Version (1.0.6) Messager Component is Throwing an Error  (Read 8363 times)
Swany
Newbie
*
Posts: 44


View Profile Email
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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.
Logged
Swany
Newbie
*
Posts: 44


View Profile Email
« Reply #2 on: July 09, 2018, 11:43:14 AM »

Upgrade worked.

Thanks Jarry
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!