Methods
(inner) highlightInvalidInput(prefix, obj) → {boolean}
Highlight the input element with the invalid value
Parameters:
Name | Type | Description |
---|---|---|
prefix |
string | prefix for the input fields |
obj |
object | the jsonrpc error object |
- Source:
Returns:
true if input element was found, else false
- Type
- boolean
(inner) isHttpUri(uri) → {boolean}
Checks if string is a http uri
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | uri to check |
- Source:
Returns:
true = http uri, else false
- Type
- boolean
(inner) isStreamUri(uri) → {boolean}
Checks if string is a stream uri
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | uri to check |
- Source:
Returns:
true = stream uri, else false
- Type
- boolean
(inner) isValidUri(uri) → {boolean}
Checks if string is a valid uri (not empty)
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | uri to check |
- Source:
Returns:
true = valid uri, else false
- Type
- boolean
(inner) removeIsInvalid(el) → {void}
Removes all is-invalid classes
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | element |
- Source:
Returns:
- Type
- void
(inner) setIsInvalid(el) → {void}
Marks an element as invalid
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | element |
- Source:
Returns:
- Type
- void
(inner) setIsInvalidId(id) → {void}
Marks an element as invalid
Parameters:
Name | Type | Description |
---|---|---|
id |
string | element id |
- Source:
Returns:
- Type
- void
(inner) validateColorEl(el) → {boolean}
Checks if the the value of the input element is a hex color
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | input element |
- Source:
Returns:
true = valid stream uri, else false
- Type
- boolean
(inner) validateFloatEl(el) → {boolean}
Checks if the the value of the input element is a float
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | input element |
- Source:
Returns:
true = float, else false
- Type
- boolean
(inner) validatePlist(str) → {boolean}
Checks if the string is a valid playlist name
Parameters:
Name | Type | Description |
---|---|---|
str |
string | input element |
- Source:
Returns:
true = valid playlist name, else false
- Type
- boolean
(inner) validatePlistEl(el) → {boolean}
Checks if the value of the input element is a valid playlist name
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | input element |
- Source:
Returns:
true = valid playlist name, else false
- Type
- boolean
(inner) validateStreamEl(el) → {boolean}
Checks if the the value of the input element is a valid stream uri
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | input element |
- Source:
Returns:
true = valid stream uri, else false
- Type
- boolean
(inner) validateUintEl(el) → {boolean}
Checks if the the value of the input element is an unsigned integer
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | input element |
- Source:
Returns:
true = unsigned integer, else false
- Type
- boolean