Skip to main content
Module

x/jito/jito.d.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.4.0/jito.d.ts";

Constructors

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

Properties

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