Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タブ タイトルの近くにある「x」ボタンを非表示にして、可能であればコンポーネント レベルの API 関数を使用して DOM を操作する低レベル コードを使用せずに表示できるようにしたいと考えています。
DOM で閉じるボタンを手動で非表示にする必要があります。
ExtJS 3 API ページでこのコードをテストしました。2 番目のタブの閉じるボタンを切り替えます。
var tabPanel = Ext.getCmp('doc-body'); var tabHeader = tabPanel.items.get(1).tabEl; Ext.get(tabHeader).down('a.x-tab-strip-close').toggleClass('x-hidden')