system.perspective.alterDock
New in 8.1.19
This function is used in Python Scripting.
Description​
Changes configuration of a specified dock on a Perspective page.
Syntax​
tip
This function accepts keyword arguments.
system.perspective.alterDock(dockId, [config], [sessionId], [pageId])
Parameters​
Type | Parameter | Description |
---|---|---|
String | dockId | The unique identifier of the dock to be modified. If no dock with the specified ID exists on the current page, a warning will be logged to the console. |
Object | config | An object containing the dock configuration to be applied when the script is run. If omitted, the dock configuration remains unchanged. [optional] The following properties can included in the config object:
|
String | sessionId | The ID of the session in which the dock modification is applied. If omitted, the modification applies to the current session. [optional] |
String | pageId | The ID of the page where the dock is located. If omitted, the modification applies to the current page. [optional] |
Returns​
Nothing
Scope​
Perspective Session
Code Examples​
Code Snippet
# Change the size of a dock with the id 'my-dock-id'
system.perspective.alterDock('my-dock-id', { 'size': 500 } )