sparc - v1.0.1
    Preparing search index...

    Interface ListProps<T>

    interface ListProps<T extends string | number> {
        class?: string;
        containerSelector?: string;
        data: T[][];
        emptyListMessage?: string;
        headers: string[];
        id?: string;
        onItemSelectHandler?: (rowData: T[]) => void;
    }

    Type Parameters

    • T extends string | number

    Hierarchy (View Summary)

    Index

    Properties

    class?: string

    Regular HTML class names

    containerSelector?: string

    Valid CSS selector targeting the current element's parent.

    const myElement = new Element({...,containerSelector:"#login-form",...})
    myElement.render() //my element will be appended to #login-form
    data: T[][]
    emptyListMessage?: string
    headers: string[]
    id?: string

    if a value is provided, sparc will not use automatic UUID generation!

    onItemSelectHandler?: (rowData: T[]) => void