DevExtreme v24.2 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.

React Tab Panel - Templates

This demo illustrates the use of templates in TabPanel. If your data objects contain custom fields, you need to specify the itemTitleRender/itemTitleComponent and itemRender/itemComponent that define how to display the fields in tabs and views.

If you want each tab and view to have differently structured content, define individual renders. To do this, assign an array of objects to the items[] or dataSource property and specify the tabRender/tabComponent and render/component properties in each object. This use case is illustrated in the following tutorial: Getting Started with TabPanel.

Use the following properties to configure user navigation between tabs:

  • swipeEnabled
    Defines whether to switch between views with a swipe gesture.

  • loop
    Specifies whether to loop views.

  • animationEnabled
    Specifies whether to animate transition between views.

You can switch the checkboxes below the TabPanel to change the loop, animationEnabled, and swipeEnabled property values.

To give you the ability to edit code on the fly, the demo uses SystemJS. For this reason, launching the demo takes some time. We strongly recommend that you do not use this approach in real projects.
Backend API