Package

ViewHelpers

ViewHelper Documentation

v:media.spotify

Renders HTML code to embed a Spotify play button

Arguments

additionalAttributes anySimpleType

Additional tag attributes. They will be added directly to the resulting HTML tag.

spotifyUri string

Spotify URI to create the play button for. Right click any song, album or playlist in Spotify and select Copy Spotify URI.

width anySimpleType

Width of the play button in pixels. Defaults to 300

height anySimpleType

Height of the play button in pixels. Defaults to 380

compact boolean

Whether to render the compact button with a fixed height of 80px.

theme string

Theme to use. Can be "black" or "white" and is not available in compact mode. Defaults to "black".

view string

View to use. Can be "list" or "coverart" and is not available in compact mode. Defaults to "list".

ViewHelper Resources

Schema Resources