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.
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應