How the data retrived (using wixData.query) from a database collection be assigned to the corresponding items in a table repeater just like using onItemReady()?
First question!
What is a table repeater?
Is it a – > TABLE ← or is it a → REPEATER <—?
So you surely are talking about a “TABLE”…
Then the right answer msut be …
$w("#myTable").rows= tableRows;
+ + + + + + + +
$w("#myTable").columns = [
{
"id": "col1",
"dataPath": "field1",
"label": "Field 1",
"width": 100,
"visible": true,
"type": "string",
"linkPath": "link-field-or-property"
},
{
"id": "col2",
"dataPath": "field2",
"label": "Field 2",
"width": 100,
"visible": true,
"type": "image",
"linkPath": "link-field-or-property"
},
{
"id": "col3",
"dataPath": "field3",
"label": "Field 3",
"width": 100,
"visible": true,
"type": "number",
"linkPath": "link-field-or-property"
}
];
But why not using REPEATER instead, what would give you more opertunities?