> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: getNestedWidget() ## Article: getNestedWidget() ## Article Link: https://dev.wix.com/docs/sdk/host-modules/editor/widget/get-nested-widget.md ## Article Content: # getNestedWidget() > **Note**: This function is supported only on [Blocks widgets](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/site-widgets/about-site-widgets-in-blocks.md). Gets the Widget API scoped to an [inner (nested) widget](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/site-widgets/add-nested-widgets-in-blocks.md). Use this function in the widget's [custom panel code](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/editor-experience-panels/add-code-to-custom-panels-in-blocks.md). This function lets you use Widget API functions on inner (nested) widgets. It receives a selector of an inner widget and returns a promise that resolves with an object representing the scope of the inner widget. ## Syntax ```js function getNestedWidget(selector: string): Promise ``` ## Parameters | Name | Type | Description | |:---------|:-----------------------------------|:-----------------------------| | `selector` | string | A string of one or more nested widget selectors, which can include a few levels of nesting from outer to inner, separated by spaces. For example: `"#nestedWidget1"`, or `"#nestedWidget1 #nestedWidget2"`. | ## Returns `Promise` Object representing the scope of the inner widget. ## Example ```js import { widget } from '@wix/editor'; widget .getNestedWidget("#nestedWidget1 #nestedWidget2") //nestedWidget2 is inside nestedWidget1 .then((nestedWixWidget) => nestedWixWidget.getDesignPreset()) .then((nestedWidgetPreset) => { // do something with the design preset of nestedWidget2 }); ```