Back to Whatsapp Web Js

whatsapp

docs/List.html

1.34.71.3 KB
Original Source

Properties

buttonTextdescription

footersections

title

Method

_format(sections)

Parameters

NameTypeOptionalDescription

body

|

|

| | |

buttonText

|

|

| | |

sections

|

|

| | |

title

|

|

|

Value can be null.

| |

footer

|

|

|

Value can be null.

|

Properties

buttonText string

List button text

description string

Message body

footer of message

sections Array of any

sections of message

title string

title of message

Method

_format(sections) → Array of any

Creates section array from simple array

Example

Input: [{title:'sectionTitle',rows:[{id:'customId', title:'ListItem2', description: 'desc'},{title:'ListItem2'}]}}]
Returns: [{'title':'sectionTitle','rows':[{'rowId':'customId','title':'ListItem1','description':'desc'},{'rowId':'oGSRoD','title':'ListItem2','description':''}]}]

Parameter

NameTypeOptionalDescription

sections

|

Array of any

|

| |

Returns

Array of any