To manually configure Tab Panel layout for a multi-tab widget, you must set the 'Type_TabPanel' property to 'true'. A sample code snippet is provided for your reference:
Code Block | ||
---|---|---|
| ||
CWEH.registerHandler('WGT_SAVED', CWEC.CTAPPBEFOREINITIALIZE, function() { |
...
this.Type_TabPanel = true; |
...
}); |
...
//Here, WGT_SAVED is the Widget ID and CTAPPBEFOREINITIALIZE is the event ID. |
To enable swipe gesture, refer Enable Swipe Gesture in Tab Panel Layout.