Posts

Showing posts from January, 2021

Lightning Component with Custom Search and Sorting

Image
Lightning aura component with custom search and sorting. Screenshots: - Component: - <aura:component controller="getProducts"> <!--handler-->     <aura:handler name="init" value="{!this}" action="{!c.doInit}" />          <!--attributes-->     <aura:attribute name="products" type="List" />          <aura:attribute name="queryTerm" type="String" default="" />     <aura:attribute name="isSearching" type="Boolean" default="false" />          <aura:attribute name="sortBy" type="String" default="name" />     <aura:attribute name="sortOrder" type="String" default="asc" />          <aura:attribute name="showSpinner" type="Boolean" default="false" />          <!--spinner-->     <aura:if isTrue="{!v.showSpinner}...