Hi everyone,
For some reason my search box forces display of the first row in the dataset and won’t let me type anything into the search box. Can anyone see anything wrong with my code?
import wixData from “wix-data” ;
$w.onReady( function () {
$w( ‘#repeater’ ).collapse()
$w( “#button1” ).onClick(()=>{
$w( ‘#repeater’ ).expand()
$w( ‘#repeater’ ).show()
$w( “#search” ).setFilter(wixData.filter()
.contains( “title” , $w( “#searchbox” ).value));
});
});
$w.onReady( function () {
$w( “#showtable” ).onClick(() => {
$w( “#tablestrip” ).expand();
$w( “#showtable” ).hide ();
$w( “#hidetable” ).show ();
});
$w.onReady( function () {
$w( “#hidetable” ).onClick(() => {
$w( “#tablestrip” ).collapse();
$w( “#showtable” ).show ();
});
});
});