diff --git a/content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/element-selector-api.md b/content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/element-selector-api.md index b4bdf13c190..28fd4704347 100644 --- a/content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/element-selector-api.md +++ b/content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/element-selector-api.md @@ -281,6 +281,12 @@ The optional query parameter allows you to filter selector results: | `name` | `string` | Filter by name | Documents, Entities | | `sdkName` | `string` | Filter by SDK name (for example, `Pages$Page`) | Documents only | + +## Preselecting Elements + +It is also possible to pass an element ID as the `selectedElementId` property of the `Selector`. This ID can be either a Document, an Entity, or a Module. If a Document or Entity, then the corresponding node on the selector form will show as selected. +If the elementID belongs to a Module, then the corresponding node will appear selected and already expanded. It will also enable the `New` button right away, allowing the user to immediately create a new document in that selected module. + ## Extensibility Feedback If you would like to provide additional feedback, you can complete a short [survey](https://survey.alchemer.eu/s3/90801191/Extensibility-Feedback). diff --git a/content/en/docs/releasenotes/studio-pro/web-extensibility-api.md b/content/en/docs/releasenotes/studio-pro/web-extensibility-api.md index 770952f093b..a270ce84294 100644 --- a/content/en/docs/releasenotes/studio-pro/web-extensibility-api.md +++ b/content/en/docs/releasenotes/studio-pro/web-extensibility-api.md @@ -8,6 +8,10 @@ numberless_headings: true These release notes cover changes to the [Extensibility API for Web Developers](/apidocs-mxsdk/apidocs/extensibility-api/). +## Version 11.14.0 + +* A module ID can now be passed to the element selector for the `selectedElementId` property, and the corresponding module will be preselected and expanded. This will allow the user to directly create a new document of the desired type in that module. + ## Version 11.12.0 * We removed the elements helper methods (`add*()`, `get*()`, `getContainer()`, and `delete()`) from the Model API types.