@univerjs/core v0.5.0-beta.1 • Docs
Class: Styles
Styles in a workbook, cells locate styles based on style IDs
Constructors
new Styles()
new Styles(styles): Styles
Parameters
Parameter | Type |
---|---|
styles | IKeyType <Nullable <IStyleData >> |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/styles.ts:31
Methods
add()
add(data, styleObject): string
Parameters
Parameter | Type |
---|---|
data | IStyleData |
styleObject | string |
Returns
string
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/styles.ts:70
each()
each(callback): Styles
Parameters
Parameter | Type |
---|---|
callback | (value , index , array ) => void |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/styles.ts:37
get()
get(id): Nullable<IStyleData>
Parameters
Parameter | Type |
---|---|
id | string | Nullable <IStyleData > |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/styles.ts:63
getStyleByCell()
getStyleByCell(cell): Nullable<IStyleData>
Parameters
Parameter | Type |
---|---|
cell | Nullable <ICellDataForSheetInterceptor > |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/styles.ts:93
search()
search(data, styleObject): string
Parameters
Parameter | Type |
---|---|
data | IStyleData |
styleObject | string |
Returns
string
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/styles.ts:48
setValue()
setValue(data): Nullable<string>
Parameters
Parameter | Type |
---|---|
data | Nullable <IStyleData > |
Returns
Nullable
<string
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/styles.ts:79
toJSON()
toJSON(): IKeyType<Nullable<IStyleData>>
Returns
IKeyType
<Nullable
<IStyleData
>>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/sheets/styles.ts:89