@univerjs/sheets-hyper-link v0.5.4
Class: HyperLinkModel
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:59
Extends
Constructors
new HyperLinkModel()
new HyperLinkModel(_univerInstanceService): HyperLinkModel
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:66
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:96 |
linkUpdate$ | public | Observable <LinkUpdate > | undefined | - | sheets-hyper-link/src/models/hyper-link.model.ts:61 |
Methods
addHyperLink()
addHyperLink(
unitId,
subUnitId,
link): boolean
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:107
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
link | ISheetHyperLink |
Returns
boolean
deleteUnit()
deleteUnit(unitId): void
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:261
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
dispose()
dispose(): void
Defined in: core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getAll()
getAll(): {
links: ISheetHyperLink[];
subUnitId: string;
unitId: string;
}[][]
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:273
Returns
{
links
: ISheetHyperLink
[];
subUnitId
: string
;
unitId
: string
;
}[][]
getHyperLink()
getHyperLink(
unitId,
subUnitId,
id): Nullable<ISheetHyperLink>
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:202
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
id | string |
Returns
getHyperLinkByLocation()
getHyperLinkByLocation(
unitId,
subUnitId,
row,
column): undefined | ISheetHyperLink
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:211
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
undefined
| ISheetHyperLink
getHyperLinkByLocationSync()
getHyperLinkByLocationSync(
unitId,
subUnitId,
row,
column):
| undefined
| {
column: number;
display: string;
id: string;
payload: string;
row: number;
}
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:216
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
column | number |
Returns
| undefined
| {
column
: number
;
display
: string
;
id
: string
;
payload
: string
;
row
: number
;
}
getSubUnit()
getSubUnit(unitId, subUnitId): ISheetHyperLink[]
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:232
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
getUnit()
getUnit(unitId): {
links: ISheetHyperLink[];
subUnitId: string;
unitId: string;
}[]
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:245
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
{
links
: ISheetHyperLink
[];
subUnitId
: string
;
unitId
: string
;
}[]
removeHyperLink()
removeHyperLink(
unitId,
subUnitId,
id): boolean
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:180
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
id | string |
Returns
boolean
updateHyperLink()
updateHyperLink(
unitId,
subUnitId,
id,
payload,
silent): boolean
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:120
Parameters
Parameter | Type | Default value |
---|---|---|
unitId | string | undefined |
subUnitId | string | undefined |
id | string | undefined |
payload | Partial <ICellLinkContent > | undefined |
silent | boolean | false |
Returns
boolean
updateHyperLinkRef()
updateHyperLinkRef(
unitId,
subUnitId,
id,
payload,
silent): boolean
Defined in: sheets-hyper-link/src/models/hyper-link.model.ts:153
Parameters
Parameter | Type | Default value |
---|---|---|
unitId | string | undefined |
subUnitId | string | undefined |
id | string | undefined |
payload | { column : number ; row : number ; } | undefined |
payload.column | number | undefined |
payload.row | number | undefined |
silent | boolean | false |
Returns
boolean