Skip to main content
Version: v1

ISharedCell Interface

Shared cell interface

Signature​

export interface ISharedCell<T = any> extends ISharedObject<ISharedCellEvents<T>>

Extends: ISharedObject<ISharedCellEvents

Type Parameters​

ParameterDefaultDescription
Tany

Methods​

MethodReturn TypeDescription
delete()voidDelete the value from the cell.
empty()booleanChecks whether cell is empty or not.
get()Serializable<T> | undefinedRetrieves the cell value.
set(value)voidSets the cell value.

Method Details​

delete​

Delete the value from the cell.

Signature​

delete(): void;

empty​

Checks whether cell is empty or not.

Signature​

empty(): boolean;

Returns​

  • true if the value of cell is undefined, false otherwise

Return type: boolean

get​

Retrieves the cell value.

Signature​

get(): Serializable<T> | undefined;

Returns​

  • the value of the cell

Return type: Serializable<T> | undefined

set​

Sets the cell value.

Signature​

set(value: Serializable<T>): void;

Parameters​

ParameterTypeDescription
valueSerializable<T>a JSON-able or SharedObject value to set the cell to