I’m building a Spotify app and want to show a list of tracks. Right now I’m using a Playlist model and List view to display the tracks. It works fine but there are no column headers like Track, Artist, and Album.
Here’s what my code looks like:
let playlist = new models.Playlist()
let trackList = new views.List(playlist)
document.body.appendChild(trackList.node)
playlist.add(song1)
playlist.add(song2)
// ... more songs added
The Spotify guidelines say we should add headers to track lists. But I can’t figure out how to do it with the built-in components. Is there an easy way to add those column headers? Or do I need to make my own custom solution? I’m worried about getting everything lined up right if I have to do it myself.
Any tips on the best approach here? Thanks!