@univerjs/ui v0.5.0-beta.1 • 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
>
Defined in
submodules/univer/packages/ui/src/utils/cell.ts:142