I need to insert a row in a repeater, is it necessary to assign it to a dataset?,
I don’t want it to depend on the dataset just for an array, I will appreciate your help
You don’t need to bind a Repeater to dataset. You can set the contents of the Repeater by using the .data property . See the Repeater documentation for more information on using Repeaters.
Good morning Yisrael, thanks for answering, I have the following code:
//****************
const bikeData1 = [
{
“txtProyecto”:“bike1”,
“rtxAcuerdo”:“wix:image://v1/6875c086ef453f5727c2b5932b3b3be4.png/Red Bike#originWidth=550&originHeight=300”
},
{
“txtProyecto”:“bike1”,
“rtxAcuerdo”:“wix:image://v1/6875c086ef453f5727c2b5932b3b3be4.png/Red Bike#originWidth=550&originHeight=300”
}
];
let ladata = $w( “#ListAcuerdos” ).data;
$w( “#ListAcuerdos” ).data = ladata.concat(bikeData1);
//****************
ListAcuerdos : name repeater
txtProyecto : name field1
rtxAcuerdo : name field2
I copied it from the example, but it doesn't work, I'm new to wix, please appreciate your response
I copied it from the example, but it doesn't work, I'm new to wix, please appreciate your response
Do you have an onReady() event handler? See the Repeater API docs for more information, and see the repeater examples for help.
Also, please post your questions without putting them in code blocks. But put your code in code blocks.
I already left, thanks a lot, I had to initialize, in effect in the onReady ()