setWidth (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 1.0
Sets the panel width for all the sessions.
Syntax
Microsoft.CIFramework.setWidth(value).then(successCallback, errorCallback);
Parameters
Name | Type | Required | Description |
---|---|---|---|
value | Number | Yes | The width of the panel in pixels. |
successCallback | Function | No | A function to call when the panel width is set successfully. |
errorCallback | Function | No | A function to call when the panel width setting operation fails. |
Note
- If the
value
parameter passed for setWidth is greater than half of screen width, the side panel will collapse. - The width should be greater than or equal to 300. The API doesn't consider any value less than 300.
Return value
Returns a promise object with a value.