mithril-materialized
    Preparing search index...

    Interface CollectionItem

    interface CollectionItem {
        active?: boolean;
        avatar?: string;
        className?: string;
        content?: string;
        href?: string;
        iconName?: string;
        id?: string | number;
        onclick?: (item: CollectionItem) => void;
        title: string | Vnode<any, any>;
        [property: string]: any;
    }

    Indexable

    • [property: string]: any

      Any other virtual element properties, including attributes and event handlers.

    Index

    Properties

    active?: boolean

    If active, preselect the collection item.

    avatar?: string

    For Avatar mode, may contain a URL reference to an image or a material icons class name

    className?: string

    Add a class to the avatar image or icon, e.g. a color 'red'.

    content?: string

    For Avatar mode, may contain a two-line trusted HTML content

    href?: string

    For links, may contain a URL reference

    iconName?: string

    Add a material icon as secondary content.

    id?: string | number

    If available, will be used as the key, so all items need an id.

    onclick?: (item: CollectionItem) => void

    Onclick event handler

    title: string | Vnode<any, any>

    Title of the collection item