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.

data anySimpleType

Additional data-* attributes. They will each be added with a "data-" prefix.

class string

CSS class(es) for this element

dir string

Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

id string

Unique (in this file) identifier for this HTML element.

lang string

Language for this element. Use short names specified in RFC 1766

style string

Individual CSS styles for this element

title string

Tooltip text of element

accesskey string

Keyboard shortcut to access this element

tabindex integer

Specifies the tab order of this element

onclick string

JavaScript evaluated for the onclick event

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