4.4 - Filters

Introduction

filters

How it works

Most of the filters are input type="text" with a data-list attribute. The data-lpignore="true" attribute makes sure there won't be any icons from the LastPass extension.

The genres filter is being rendered with a seperate genres list. The genres are stored in genres.json.

genres.json

This makes it possible to easily change or add genres to the filter.

Because of the short time and that our focus laid elsewhere the filters are not filtering anything right now. Instead they work as a search query.

In the code below every filter has got an event listener on it. If the input changes it will search the Spotify API.

Last updated

Was this helpful?