Members
(constant) add
Companion file as to example.test.js
- Source:
Methods
bindCheckboxes()
bind displayCards function to the event of toggling checkboxes
bindSearchBar()
event listeners on search input change
bindSearchButton()
event listeners on search button click
clearDropdowns()
wipe dropdowns
configureRecipeCards()
add event listeners for each recipe card onclick
defaultPreference()
apply the default preferences to the UI
displayCards()
displays the current recipes with filters applied
hitSearch()
app logic when we hit search
readPreference() → {Array.<string>}
read the check boxes to return a list of preferences
Returns:
an array of preferences
- Type
- Array.<string>
registerCheckboxes()
this register listeners to toggle the savebutton whenever checkboxes are changed