Skip to main content
Module

x/capsid/mod.ts

💊 Declarative DOM programming library. Lightweight (1.79 kb).
Latest
import * as capsid from "https://deno.land/x/capsid@v1.8.2/mod.ts";

Variables

The registry of component initializers.

The decorator for class component registration.

Registers the class-component for the given name and constructor and returns the constructor.

@emits(event) decorator

Gets the eoelement instance of the class-component of the given name

is decorator adds the class names to the given element when it's mounted.

Installs the capsid module or plugin.

is decorator adds the class names to the given element when it's mounted.

Initializes the given element as the class-component.

The decorator for registering event listener info to the method.

Initializes the class components of the given name in the range of the given element.

Publishes the given event to the elements which has sub:${event} class. For example @pub('foo') publishes the foo event to the elements which have sub:foo class.

Wires the element of the given selector to the property.