wimpy.getButtonList

 

Returns the internal list maintained by wimpy, which is an array of button objects.

Each button object contains a few properties, such as "file" and "playing". See getButtonBy for more info on button object properties.

 

wimpy.getButtonList()

 

Parameters

none

 

Return Value

array

An array of button objects.

 

See Also

 

Examples

============ UNTESTED CODE ===========
<p data-wimpybutton="song1.mp3">Play Foo.</p> <p data-wimpybutton="song2.mp3">Play Foo.</p> <p data-wimpybutton="song3.mp3">Play Foo.</p> <script> function doSomething(){ var buttonList = wimpy.getButtonList(); var see = ""; for(var i=0; i<buttonList.length; i++){
var item = buttonList[i]; see += i + " : " + item.file + "\n"; } alert(see);
} wimpy.onReady(doSomething); </script>