0

I use extjs 6.6.0. There is a tab view:

Ext.create('Ext.TabPanel', {
    fullscreen: true,
    items: [
        {
            title: 'Home',
            html: 'Home Screen'
        },
        {
            title: 'Contact',
            html: 'Contact Screen'
        }
    ]
});

Actually, this example is located at the link here: https://docs.sencha.com/extjs/6.6.0/modern/Ext.tab.Panel.html#configs

Tell me how to disable tab animation. Need a tough adventure. I pressed it and it switched over. I can't figure out how to do this

Ext.create('Ext.TabPanel', {
    fullscreen: true,
    hideMode : 'clip',
    items: [
        {
            title: 'Home',
            html: 'Home Screen'
        },
        {
            title: 'Contact',
            html: 'Contact Screen'
        }
    ]
});

I thought it was done somehow using hideMode : 'clip'. But having used it, I understand that this is not the case. Either I'm doing something wrong. Please help me turn off the animation.

1 Answer 1

2

What you are looking for is the layout:

Ext.create('Ext.TabPanel', {
    renderTo: document.body,
    height  : 300,
    tabBarPosition: 'bottom',

    layout: {
        type: 'card',
        animation: null
        /*
        Possible values for animation are null or Object
            { type: 'fade' }
        Possilbe values for type are
            // 'cover' 'cube' 'fade' 'flip' 'pop' 'reveal' 'scroll' 'slide'
        */
    },

    items: [
        { title: 'Home', iconCls: 'home', html: 'Home Screen' },
        { title: 'Contact', iconCls: 'user', html: 'Contact Screen' }
    ]
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.