# Class: ListCard

## ListCard()

ListCard 多图片文本卡片

## Constructor

#### new ListCard()

Source:
  - card/ListCard.js, line 36

### Extends

- BaseCard

### Members

#### (static) Item

Source:
  - card/ListCard.js, line 73

### Methods

#### addCueWords(arr) → {BaseCard}

添加用户操作提示。所有卡片都可以添加引导提升

##### Parameters:

Name | Type | Description
--- | --- | ---
`arr` | Array | 提示的话术

Inherited From:
  - BaseCard#addCueWords
Source:
  - card/BaseCard.js, line 81

##### Returns:

返回自己

Type
  BaseCard

##### Example

    this.addCueWords(['十元', '二十元']);

#### addItem(listCardItem)

添加一个图片项

##### Parameters:

Name | Type | Description
--- | --- | ---
`listCardItem` | ListCardItem | 列表项

Source:
  - card/ListCard.js, line 58

##### Example

    let listCardItem = new ListCardItem();
    listCardItem.setTitle('标题');
    listCardItem.setContent('内容');
    listCardItem.setUrl('http://wwww.');
    listCardItem.setImage('http://wwww.image');

    let listCard = new ListCard();
    listCard.addItem(listCardItem);

#### getData(key) → {mixed}

获取卡片数据，或者某个字段的值 Example: this.getData(); this.getData('fieldName');

##### Parameters:

Name | Type | Description
--- | --- | ---
`key` | string | 字段名，可选。如果不提供字段名，返回整个卡片数据

Inherited From:
  - BaseCard#getData
Source:
  - card/BaseCard.js, line 124

##### Returns:

Type
  mixed

#### setAnchor(url, anchorText) → {BaseCard}

设置"查看更多" ，设置卡片锚点

##### Parameters:

Name | Type | Description
--- | --- | ---
`url` | string | 链接地址
`anchorText` | string | 锚点展现的文字，可选。如果不设置，默认为"查看更多"

Inherited From:
  - BaseCard#setAnchor
Source:
  - card/BaseCard.js, line 102

##### Returns:

返回自己

Type
  BaseCard