> 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: setProps(props: object) # Method package: wixWidget # Method menu location: wixWidget --> setProps # Method Link: https://dev.wix.com/docs/velo/velo-only-apis/wix-widget/set-props.md # Method Description: Sets the widget's [properties](https://support.wix.com/en/article/wix-blocks-widget-api-properties). You can also assign a partial subset of the widget's properties. The `setProps()` function returns a Promise that resolves when the properties are set. To use this function on an inner (nested) widget, use [`getNestedWidget()`](#getNestedWidget). > **Note**: > The `setProps()` 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. ## Set a widget's properties ```javascript import wixWidget from 'wix-widget'; // ... wixWidget.setProps({saleIndicator: "No Sale"}) .then (() => { // Code to execture after setting the props }) ``` ---