Module: components/card

Methods

(inner) cardCreate(listCardsInner, responseData)

Create card with the data response

Parameters:
Name Type Description
listCardsInner Element

DOM element that wraps up the card list

responseData object

response data of the ajax handler (json)

Source:
See:

(inner) cardCreateItem(titleData, cardItemData) → {HTMLElement}

Create the content for a card data field

Parameters:
Name Type Description
titleData string

property name

cardItemData string | number | Array | object

property value

Source:
See:
Returns:

returns the card data div element

Type
HTMLElement

(inner) cardCreateList(data) → {HTMLElement}

Create a list of items from an array or object

Parameters:
Name Type Description
data Array | object

data to create list items from

Source:
See:
Returns:

returns the ul element with li children

Type
HTMLElement

(inner) cardMoveImage()

Move the card image up.

Source:
See:

(inner) cardToggleView(item, thisView)

See more card info

Parameters:
Name Type Description
item HTMLCollection

list of cards

thisView Element

card selected

Source:
See:

(inner) cardWhenClicked()

Event click in the card

Source:
See:

Events

click

View more card info when click it.

Type:
  • object
Source:
See: