EXTJS TABLEPANEL如何通过title返回整个CARD

因为我要通过TITLE返回整个卡片,于是我就可以把卡片激活
2025-05-16 22:26:02
推荐回答(1个)
回答1:

setActiveTab (String/Panel tab )  参数是 tabb本身或者是其ID  不接受title作为参数

所以你可以 把title 和ID 用同一个 字串 就可以达到你要的效果

var items={
    title:record.item._text;
    id:record.item._text;
    ...
    };
  ...
  
  if (arr.indexOf(items.title)==-1){
  
  }else{
      panel.setActiveTab(items.title);
  }