Global

Members

(constant) add

Companion file as to example.test.js
Source:

Methods

bindCheckboxes()

bind displayCards function to the event of toggling checkboxes
Source:

bindSearchBar()

event listeners on search input change
Source:

bindSearchButton()

event listeners on search button click
Source:

clearDropdowns()

wipe dropdowns
Source:

configureRecipeCards()

add event listeners for each recipe card onclick
Source:

defaultPreference()

apply the default preferences to the UI
Source:

displayCards()

displays the current recipes with filters applied
Source:

hitSearch()

app logic when we hit search
Source:

readPreference() → {Array.<string>}

read the check boxes to return a list of preferences
Source:
Returns:
an array of preferences
Type
Array.<string>

registerCheckboxes()

this register listeners to toggle the savebutton whenever checkboxes are changed
Source: