> 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 # Method name: getNestedWidget(Selector: string) # Method package: wixWidget # Method menu location: wixWidget --> getNestedWidget # Method Link: https://dev.wix.com/docs/velo/velo-only-apis/wix-widget/get-nested-widget.md # Method Description: Gets the `wix-widget` module scoped to an [inner (nested) widget](https://support.wix.com/en/article/wix-blocks-creating-and-managing-widgets-within-widgets). The `getNestedWidget()` function lets you use `wix-widget` 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. > **Note**: > The `getNestedWidget()` function doesn't work in preview mode. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get a nested widget's preset ```javascript import wixWidget from 'wix-widget'; //... wixWidget.getNestedWidget("#nestedWidget1 #nestedWidget2") //nestedWidget2 is inside nestedWidget1 .then((nestedWixWidget) => nestedWixWidget.getDesignPreset()) .then((nestedWidgetPreset) => { // do something with the design preset of nestedWidget2 }); ``` ---