/ui/elements/card

Methods

(inner) card(params) → {HTMLElement}

The card element method creates a drawer class card which can be closed but not collapsed to the header.

The element is assigned as card property to the params.

Parameters:
NameTypeDescription
paramsObject

Params for the card element.

Properties
NameTypeAttributesDescription
params.closefunction<optional>

Callback method to execute when a card element is closed.

Returns:

card element.

Type: 
HTMLElement