EasyUI Forum
March 29, 2024, 06:07:43 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to check if a TabPanelComponent exits in the TabsComponent's panels list?  (Read 4947 times)
softboy99
Newbie
*
Posts: 43


View Profile Email
« 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: 2260


View Profile Email
« 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  
 
Jump to:  

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