I want to make a tabpanel in ExtJS 4 with big tab that include my own Component (or XTemplete),
is there some way to implement?
thanks
UPDATE
: can change the custom tab’s height by this link
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out
Ext.tab.BarandExt.tab.Tab. You can pass in a tab bar configuration to the panel via theExt.tab.Panel#tabBarconfig property.You then create a custom component class with
alias: 'widget.xxx. The defaultExt.tab.Tabis a subclass ofExt.button.Buttonwith custom styling.Replacing it with a component that is not just a subclass of
Ext.tab.Tabis probably quite a bit of work. You will need to assure that the component’s behavior is correct and also the CSS styling looks nice.A faster but less flexible approach would be to subclass
Ext.tab.Taband change its appearance to match your needs.UPDATE
Unfortunately ExtJs’
Ext.tab.Panelexplicitely sets the xtype for each tab that is being added/created.From
Ext.tab.PanelBut as you can see it is possible to add a
tabConfigon the items of a tab panel which will take precedence of the defaultConfig defined here. So a simple and straight forward approach is to define a tabConfig on every child item of your tab panel