Module: viewQueueCurrent_js

Methods

(inner) gotoPlayingSong() → {void}

Scrolls to the current song
Source:
Returns:
Type
void

(inner) handleQueueCurrent() → {void}

Current queue handler
Source:
Returns:
Type
void

(inner) initViewQueueCurrent() → {void}

Initializes the current queue elements
Source:
Returns:
Type
void

(inner) parseQueue(obj) → {void}

Parses the queue list and search responses
Parameters:
Name Type Description
obj object jsonrpc response
Source:
Returns:
Type
void

(inner) parseQueueBody(card, data) → {void}

Callback function for row or card body
Parameters:
Name Type Description
card HTMLElement Row or card
data object Data object
Source:
Returns:
Type
void

(inner) parseQueueUpdate(card, data) → {void}

Callback function for row or card
Parameters:
Name Type Description
card HTMLElement Row or card
data object Data object
Source:
Returns:
Type
void

(inner) queueSetCurrentSong() → {void}

Removes the old playing row and sets the new playing row in the queue view
Source:
Returns:
Type
void

(inner) resetDuration(playingRowopt) → {void}

Resets the duration in playing row and footer
Parameters:
Name Type Attributes Description
playingRow HTMLElement <optional>
current playing row in queue card
Source:
Returns:
Type
void

(inner) resetSongPos(playingRowopt) → {void}

Resets the position in playing row
Parameters:
Name Type Attributes Description
playingRow HTMLElement <optional>
current playing row in queue card
Source:
Returns:
Type
void

(inner) setPlayingRow(playingRowopt) → {void}

Sets the playing song in the current queue view
Parameters:
Name Type Attributes Description
playingRow HTMLElement <optional>
playing row element
Source:
Returns:
Type
void

(inner) setQueueCounter(playingRow, counterText) → {void}

Sets the playing progress in the queue view
Parameters:
Name Type Description
playingRow HTMLElement the playing row element
counterText string text to set for the duration
Source:
Returns:
Type
void

(inner) viewQueueCurrentListClickHandler(event, target) → {void}

Click event handler for current queue list
Parameters:
Name Type Description
event MouseEvent click event
target HTMLElement calculated target
Source:
Returns:
Type
void