EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 11, 2024, 05:53:43 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for Angular
>
Newest Version (1.0.6) Messager Component is Throwing an Error
Pages: [
1
]
« previous
next »
Print
Author
Topic: Newest Version (1.0.6) Messager Component is Throwing an Error (Read 8404 times)
Swany
Newbie
Posts: 44
Newest Version (1.0.6) Messager Component is Throwing an Error
«
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: 2264
Re: Newest Version (1.0.6) Messager Component is Throwing an Error
«
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
Re: Newest Version (1.0.6) Messager Component is Throwing an Error
«
Reply #2 on:
July 09, 2018, 11:43:14 AM »
Upgrade worked.
Thanks Jarry
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...