Skip to main content
Module

x/jito/mod.ts>Entity

Web component tools with Data Binding, Template Engine and Virtual Dom for ESM.
Go to Latest
class Entity
import { Entity } from "https://deno.land/x/jito@1.2.2/mod.ts";

Constructors

new
Entity(
component: Component,
host: Element,
)

Properties

private
_attrs: Record<string, unknown>
private
_cache: SpecialCache
private
_component: Component
private
_host: Element
private
optional
_patcher: Patcher
private
_ready: Promise<void>
private
_refs: Record<string, [Ref, TargetCallback, TargetCallback]>
private
_requirePatch: boolean
private
optional
_stack: StateStack | null
private
optional
_template: TreeTemplate
private
_tree: LinkedVirtualTree
private
_updater: SafeUpdater
private
_watcher: Set<[unknown, RecursiveCallback | string | undefined, TargetCallback | boolean | undefined]>
readonly
attrs: Record<string, unknown>
readonly
component: Component
readonly
host: Element
readonly
ready: () => Promise<void>
readonly
root: ShadowRoot

Methods

dispatch(typeArg: string, detail?: unknown): void
patch(template?: string | TreeTemplate | Patcher): void
setAttr(name: string, value: unknown): void
take<T>(options: TakeOptions): Promise<T>
watch<T>(data: T): T
watch<T>(
data: T,
isExecute?: boolean,
): T
watch<T>(
data: T,
key: string,
callback: TargetCallback,
isExecute?: boolean,
): T