Advance Search Bar Filter With Result Count

Advance Search Bar Filter With Result Count Advance Search Bar Filter With Result Count Advance Search Bar Filter With Result Count

import wixData from 'wix-data';


export function SearchBUTTON_click(event) {

    search(); 

}

function search() {

        $w("#dataset1").onReady(function () {

            $w("#dataset1").setFilter(wixData.filter()

            .contains('title', String($w('#Searchbar').value))

            .or(wixData.filter().contains("designation", String($w('#Searchbar').value))))

        

        })

    }


 

export function ClearBUTTON_click(event) {

    $w("#dataset1").setFilter(wixData.filter())

        $w("#Searchbar").value = undefined

        let filter = wixData.filter();

        $w('#dataset1').setFilter(filter); 

}

COPY CODE !

Explore More Codes