facy - v0.1.0
    Preparing search index...

    Class ComposableTag<T>

    Extends Tag with composition functionality (see the description there).

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    name?: string

    Methods

    • Add the given tags as children of this tag. Both the array as the tags themselves may optionally be reactive, the child binding will respond accordingly.

      Parameters

      • tags: MaybeReactive<MaybeReactive<Tag<Node>>[]>

      Returns this

      This replaces any existing children as it's mostly intended to be called only once.

    • Add a single child with the given HTML fragment.

      Parameters

      • content: MaybeReactive<string>

        optionally reactive content string

      • parse: HtmlParser = CONFIG.parseHtml

        how to parse and sanitize the content - always thoroughly sanitize untrusted code (i.e. any potential user input, including request parameters, local storage etc...)!

      Returns this

    • Dispatches the given event to this element.

      Parameters

      Returns void