@univerjs/ui v0.4.2 • Docs
Function: handleStringToStyle()
function handleStringToStyle($dom?, cssStyle?): IStyleData & Record<string, unknown>
A single span parses out the ITextStyle style sheet
Parameters
Parameter | Type | Default value |
---|---|---|
$dom ? | HTMLElement | undefined |
cssStyle ? | string | '' |
Returns
IStyleData
& Record
<string
, unknown
>