EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 23, 2024, 08:11:47 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
>
How to check if a TabPanelComponent exits in the TabsComponent's panels list?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to check if a TabPanelComponent exits in the TabsComponent's panels list? (Read 5216 times)
softboy99
Newbie
Posts: 43
How to check if a TabPanelComponent exits in the TabsComponent's panels list?
«
on:
February 01, 2018, 03:28:06 AM »
How to check if a TabPanelComponent exits in the TabsComponent's panels list by the TabPanelComponent's name?
Logged
jarry
Administrator
Hero Member
Posts: 2264
Re: How to check if a TabPanelComponent exits in the TabsComponent's panels list?
«
Reply #1 on:
February 02, 2018, 12:58:35 AM »
The TabPanelComponent has no 'name' property but you can call 'filter' method to find the component with the 'panels' property of the TabsComponent.
Code:
let tt = ... // the TabsComponent object
let p = tt.panels.filter(p => ...);
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...