Created
December 7, 2011 12:07
-
-
Save ErikAndreas/1442575 to your computer and use it in GitHub Desktop.
Spotify Apps Api - Tabs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function init() { | |
console.log("init()"); | |
sp = getSpotifyApi(1); | |
// detects arguments value for tab | |
sp.core.addEventListener("argumentsChanged", function (event) { | |
console.log('args changed', sp.core.getArguments()); | |
}); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"DefaultTabs": [ | |
{ | |
"arguments": "tab1", | |
"title": { | |
"en": "title tab 1" | |
} | |
}, | |
{ | |
"arguments": "tab2", | |
"title": { | |
"en": "title tab 2" | |
} | |
} | |
] | |
} |
I don't think that is an option. We Are Hunted uses a drop down menu but they actually aren't using the Spotify bar. They redid the bar themselves and you can actually pull it from them if you inspect their app.
Thanks man. :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any way to do a drop down sub-menu for a certain tab?