Class: WatchDirective<T>
Defined in: @lit-labs/signals:
See
https://lit.dev/docs/data/signals/
Extends
AsyncDirective
Type Parameters
| Type Parameter |
|---|
T |
Accessors
_$isConnected
Get Signature
get _$isConnected(): boolean;Defined in: lit-html:
Returns
boolean
Inherited from
AsyncDirective._$isConnectedConstructors
Constructor
new WatchDirective<T>(_partInfo: PartInfo): WatchDirective<T>;Defined in: lit-html:
Parameters
| Parameter | Type |
|---|---|
_partInfo | PartInfo |
Returns
WatchDirective<T>
Inherited from
AsyncDirective.constructorMethods
_$initialize()
_$initialize(
part: Part,
parent: Disconnectable,
attributeIndex: number | undefined): void;Defined in: lit-html:
Initialize the part with internal fields
Parameters
| Parameter | Type | Description |
|---|---|---|
part | Part | - |
parent | Disconnectable | - |
attributeIndex | number | undefined | - |
Returns
void
Inherited from
AsyncDirective._$initializedisconnected()
protected disconnected(): void;Defined in: @lit-labs/signals:
User callbacks for implementing logic to release any resources/subscriptions that may have been retained by this directive. Since directives may also be re-connected, reconnected should also be implemented to restore the working state of the directive prior to the next render.
Returns
void
Overrides
AsyncDirective.disconnectedreconnected()
protected reconnected(): void;Defined in: @lit-labs/signals:
Returns
void
Overrides
AsyncDirective.reconnectedrender()
render(signal:
| State<T>
| Computed<T>): T;Defined in: @lit-labs/signals:
Parameters
| Parameter | Type |
|---|---|
signal | | State<T> | Computed<T> |
Returns
T
Overrides
AsyncDirective.rendersetValue()
setValue(value: unknown): void;Defined in: lit-html:
Sets the value of the directive's Part outside the normal update/render lifecycle of a directive.
This method should not be called synchronously from a directive's update or render.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to set |
Returns
void
Inherited from
AsyncDirective.setValueupdate()
update(part: Part, __namedParameters: [
| State<T>
| Computed<T>]): T;Defined in: @lit-labs/signals:
Parameters
| Parameter | Type |
|---|---|
part | Part |
__namedParameters | [ | State<T> | Computed<T>] |
Returns
T
Overrides
AsyncDirective.updateProperties
isConnected
isConnected: boolean;Defined in: lit-html:
The connection state for this Directive.
Inherited from
AsyncDirective.isConnected