Resize
RESIZE dynamically changes the width and height of the widget iframe inside Zoho products.
Commonly used for :
- Adjusting widget dimensions dynamically
- Optimizing layout for different locations
- Expanding space for complex UI elements
- Reducing unused container space
- Supporting responsive interface behavior
When to use RESIZE :
- The widget is opened via a button or custom action
- You want to show more UI elements (forms, tables, confirmations)
- The default widget size is not sufficient
- UI changes dynamically (expand / collapse sections)
Important notes :
- Size values must be strings (px)
- Works only inside supported widget locations
- Does not affect Zoho products layout — only the widget iframe
Sample Code :
REQUEST DETAILS
window.onload = function () {
ZFAPPS.extension.init().then(function(App) {
ZFAPPS.invoke('RESIZE', { width: '100px', height: '100px'})
.then(() => {
console.log('Resized successfully');
});
})
}