media.spotify ViewHelper <vhs:media.spotify> 

Renders HTML code to embed a Spotify play button.

Arguments 

additionalAttributes 

DataType
mixed
Required
false
Description
Additional tag attributes. They will be added directly to the resulting HTML tag.

data 

DataType
mixed
Required
false
Description
Additional data-* attributes. They will each be added with a "data-" prefix.

aria 

DataType
mixed
Required
false
Description
Additional aria-* attributes. They will each be added with a "aria-" prefix.

class 

DataType
string
Required
false
Description
CSS class(es) for this element

dir 

DataType
string
Required
false
Description
Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

id 

DataType
string
Required
false
Description
Unique (in this file) identifier for this HTML element.

lang 

DataType
string
Required
false
Description
Language for this element. Use short names specified in RFC 1766

style 

DataType
string
Required
false
Description
Individual CSS styles for this element

title 

DataType
string
Required
false
Description
Tooltip text of element

accesskey 

DataType
string
Required
false
Description
Keyboard shortcut to access this element

tabindex 

DataType
integer
Required
false
Description
Specifies the tab order of this element

onclick 

DataType
string
Required
false
Description
JavaScript evaluated for the onclick event

spotifyUri 

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

width 

DataType
mixed
Default
300
Required
false
Description
Width of the play button in pixels. Defaults to 300

height 

DataType
mixed
Default
380
Required
false
Description
Height of the play button in pixels. Defaults to 380

compact 

DataType
boolean
Required
false
Description
Whether to render the compact button with a fixed height of 80px.

theme 

DataType
string
Default
'black'
Required
false
Description
Theme to use. Can be "black" or "white" and is not available in compact mode. Defaults to "black".

view 

DataType
string
Default
'list'
Required
false
Description
View to use. Can be "list" or "coverart" and is not available in compact mode. Defaults to "list".