top of page

Bases de Datos y Repetidores | Curso Velo


Bienvenido y espero que estés muy bien. Este es el tercer video del CURSO DE VELO EN WIX. Una serie de videos que te ayudará a entender Velo de Cero a Intermedio. No olvides subscribirte y comentar alguna pregunta!





CODIGO

 

// Velo API Reference: https://www.wix.com/velo/reference/api-overview/introduction import wixData from 'wix-data'; $w.onReady(function () { init(); }); async function init() { const products = await wixData.query("products") .find() .then((results) => { if (results.items.length > 0) { // console.log(results.items[0]); //see item below return results.items; } else { // handle case where no matching items found return []; } }) console.log("products", products); $w("#repeater8").data = products; $w("#repeater8").onItemReady( ($item, itemData, index) => { $item("#text14").text = itemData.price.toString(); $item("#text13").text = itemData.title; $item("#container8").background.src = itemData.imageMain; }); }


 
30 views2 comments

Recent Posts

See All
bottom of page