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; }); }
Hola muchas gracias por los videos
quise comentar en youtube pero no me aparece habilitado
quiero ver si me puedes ayudar con una consulta
quiero sacar el value de un input que viene de una base de datos pero no me lo da
al poner el console.log aparece en blanco
ya la declare como variable const y nada con let y tampoco
$w.onReady(function () {
const nameString = $w('#input1').value; console.log("oc") $w('#text1').text = "hey" console.log( nameString) });
y en la consola solo me imprime oc
muchas gracias