Card Properties

Type Parameters

  • T = Element

Hierarchy

  • IBaseProps<ICard>
    • ICardProps

Properties

assignTo?: ((obj) => void)

Type declaration

    • (obj): void
    • Assigns the object to the input parameter.

      Parameters

      Returns void

body?: ICardBody<T>[]
className?: string

Custom class names.

el?: HTMLElement

The element to render the component to.

footer?: ICardFooter<T>
header?: ICardHeader<T>
imgBottom?: {
    alt?: string;
    src?: string;
}

Type declaration

  • Optional alt?: string
  • Optional src?: string
imgTop?: {
    alt?: string;
    src?: string;
}

Type declaration

  • Optional alt?: string
  • Optional src?: string
onClick?: ((card?, ev?) => void)

Type declaration

    • (card?, ev?): void
    • Parameters

      • Optional card: ICardBody<Element>
      • Optional ev: Event

      Returns void

onRender?: ((el?, card?) => void)

Type declaration

    • (el?, card?): void
    • Parameters

      • Optional el: HTMLElement
      • Optional card: ICardProps<Element>

      Returns void

Generated using TypeDoc