Skip to main content

Getting Started

This library is aimed to be used in a Wix Velo environment. Make sure you're running on a Wix site with developer mode on.

Installation

Follow the instructions here and install @wix/velo-bind from npm on your Wix site.

Hello World

Objective: Select a title on the stage and change its text

NOTE: For this example to work, please add a text component (see how) to your site and set its id (see how) to text1

import { bind } from "@wix/velo-bind";

$w.onReady(() => {
const {text1} = bind($w); //text1 is the id of the text component that you have on the editor's stage
text1.text = () => `Hello World`;
});

Next, we'll use dynamic content as the text