Preparing search index...
The search index is not available
@zeix/ui-element
@zeix/ui-element
asJSON
Function asJSON
Parse an attribute as a JSON serialized object with a fallback
Since
0.11.0
Throws
if the value and fallback are both null or undefined
Throws
if the value is not a valid JSON object
asJSON
<
T
extends
{}
>
(
fallback
:
T
)
:
AttributeParser
<
HTMLElement
,
T
>
Type Parameters
T
extends
{}
Parameters
fallback
:
T
fallback value
Returns
AttributeParser
<
HTMLElement
,
T
>
parser function
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@zeix/ui-element
Loading...
Parse an attribute as a JSON serialized object with a fallback
Since
0.11.0
Throws
Throws