Overview
Go Headless

Changelog

SDK
Articles
Get Started
Work with the SDK
Set up a Client
Use the Wix MCP

Core Modules
About Core Modules
sdk
sdk-react (deprecated)
essentials
web-methods
realtime

Host Modules
About Host Modules
workspace
dashboard
dashboard-react (deprecated)
editor
Introduction
Page
Pages
Widget
Info
Inputs
Elements
React Elements
Introduction
Data
Styles
Presets
States
Pickers
selectBackground()
selectColor()
selectFilter()
selectFont()
selectFontFamily()
selectFontWeight()
selectLink()
selectMedia()
selectSort()
selectTextTheme()
Array Items
Component Metadata
Change Events
site

Business Solutions
About Business Solutions
ai-site-chat
blog
bookings
crm
data
ecom
events
restaurants
stores

Frontend Modules
About Frontend Modules
bookings
crm
ecom
events
location
members
mobile
navigate-mobile
pay
pricing-plans
seo
site
storage
stores
window
site-realtime
In This Article

  1. Syntax
  2. Parameters
  3. Returns
  4. Example
  5. See also

selectLink()

Opens the editor's link picker for the selected component, letting a Wix user create or edit a link.

Syntax

Copy

Parameters

params accepts one of the following shapes:

  • Manifest key
  • Explicit options

For more information on this choice, see Picker arguments.

Manifest key

Connects the picker to a manifest data field, so the selected link saves to it automatically.

NameTypeDescription
dataItemKeystringKey of a data field with dataType: 'link' in the manifest. The editor reads the current value, opens the picker, and saves the selection back to this field automatically.
options.originstringOptional BI tag identifying where the picker was opened from in your panel, for example 'header-cta'.

Explicit options

Opens the picker without connecting it to the manifest, so you decide what to do with the selected link.

NameTypeDescription
valueobjectAn existing link to pre-populate the picker with.
options.originstringOptional BI tag identifying where the picker was opened from in your panel.
options.linkTypesstring[]Restricts the picker to specific link types, for example ['ExternalLink', 'PageLink'].
options.appIdsstring[]Restricts dynamic-page link results to specific installed apps, by app definition ID.
options.hideInnerRoutebooleanWhether to hide the option to link to an inner route of a dynamic page, showing only the page itself.

Returns

Promise<ElementLink | null | undefined>

The selected link, or null or undefined if the Wix user closes the picker without selecting anything.

Example

Copy

See also

  • setData()
  • About the React Elements API

Last updated: 8 September 2026

Did this help?