Methods
(inner) deleteSticker(el, name) → {void}
Deletes a script after confirmation
Parameters:
Name | Type | Description |
---|---|---|
el |
EventTarget | triggering element |
name |
string | Sticker name |
- Source:
Returns:
- Type
- void
(inner) deleteStickerCheckError(obj) → {void}
Handler for the MYMPD_API_STICKER_DELETE jsonrpc response
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc response |
- Source:
Returns:
- Type
- void
(inner) filterStickerSelect(elId, searchstr, selectedSticker) → {void}
Gets sticker names and populates a select
Parameters:
Name | Type | Description |
---|---|---|
elId |
string | select element id |
searchstr |
string | search string |
selectedSticker |
string | current selected playlist |
- Source:
Returns:
- Type
- void
(inner) getStickerList() → {void}
Gets the list of stickers
- Source:
Returns:
- Type
- void
(inner) initModalSticker() → {void}
Initialization functions for the sticker modal elements
- Source:
Returns:
- Type
- void
(inner) parseStickerList(obj) → {void}
Parses the MYMPD_API_STICKER_LIST jsonrpc response
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc response |
- Source:
Returns:
- Type
- void
(inner) populateStickerSelect(obj, stickerSelectId, selectedSticker) → {void}
Populates the custom input element mympd-select-search
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc response |
stickerSelectId |
string | select element id |
selectedSticker |
string | current selected sticker |
- Source:
Returns:
- Type
- void
(inner) printStickerRow(name, value, valueEl) → {HTMLElement}
Prints a sticker table row
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Sticker name |
value |
string | Sticker value |
valueEl |
Node | Sticker value element |
- Source:
Returns:
Table row
- Type
- HTMLElement
(inner) saveSticker(target) → {void}
Saves the custom sticker
Parameters:
Name | Type | Description |
---|---|---|
target |
Element | triggering element |
- Source:
Returns:
- Type
- void
(inner) saveStickerCheckError(obj) → {void}
Handler for the MYMPD_API_SCRIPT_SAVE jsonrpc response
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | jsonrpc response |
- Source:
Returns:
- Type
- void
(inner) showEditSticker(name, value) → {void}
Shows the edit sticker tab
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Sticker name |
value |
string | Sticker value |
- Source:
Returns:
- Type
- void
(inner) showListSticker() → {void}
Shows the list scripts tab
- Source:
Returns:
- Type
- void
(inner) showStickerModal(uri, type) → {void}
Opens the sticker modal and shows the list tab
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | Sticker uri |
type |
string | Sticker type |
- Source:
Returns:
- Type
- void