Logos DX
    Preparing search index...

    Function $

    Index

    Properties

    Properties

    create: <K extends keyof HTMLElementTagNameMap>(
        tag: K,
        opts?: CreateOptions,
    ) => DomCollection<HTMLElementTagNameMap[K]>

    Create a DOM element and return it wrapped in a DomCollection.

    const card = $.create('div', { text: 'Hello', class: ['card'] });
    
    template: (
        source: string | HTMLTemplateElement,
        config?: TemplateConfig,
    ) => TemplateStamper

    Create a reusable TemplateStamper for an HTML <template> element.

    const card = $.template('#user-card', {
    map: { '.name': { css: { fontWeight: 'bold' } } }
    });
    card.stamp({ '.name': 'Alice' }).into(container);