Hi, i have a search bar in my site and i want to show image on wix pro gallery when i select a row.
this is my code for search bar.
$w.onReady( function () {
});
import wixData from ‘wix-data’;
export function button1_click(event) {
let searchValue = $w(‘#input1’).value;
let searchWords = searchValue.split(’ ');
let query = wixData.query(‘MARKA-MODEL’)
.contains(‘markamodel’, searchWords[0]);
for ( let i=1; i < searchWords.length; i++) {
query = query.or(wixData.query(‘MARKA-MODEL’)
.contains(‘markamodel’, searchWords[i]));
}
query.find()
.then(res => {
$w(‘#table1’).rows = res.items;
});
}
export function table1_rowSelect(event) {
//Add your code for this event here:
}
Thanks