You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,9 @@ import { MessageBox } from 'react-chat-elements'
76
76
| text | none | string | message text |
77
77
| data | {} | object | message data |
78
78
| date | new Date() | Date | message date |
79
+
| onClick | none | function | message on click (message(object) is returned) |
80
+
| onOpen | none | function | message on open (file or photo) (message(object) is returned) |
81
+
| onDownload | none | function | message on download (file or photo) (message(object) is returned) |
79
82
80
83
81
84
## SystemMessage Component
@@ -127,6 +130,8 @@ import { MessageList } from 'react-chat-elements'
127
130
| lockable | false | boolean | It locks to scroll position when the dataSource has been changed |
128
131
| toBottomHeight | 300 | int or string(only '100%') | If the toBottomHeight property's value higher than bottom value of the scrollbar when the data source has been changed Scrollbar goes to bottom at the end of the page. If the toBottomHeight property's value has been set **'100%'**, scrollbar goes to bottom at the end of the page when the data source has been changed. |
129
132
| onClick | none | function | message list item on click (message(object) is returned) |
133
+
| onOpen | none | function | message list item on open (file or photo) (message(object) is returned) |
134
+
| onDownload | none | function | message list item on download (file or photo) (message(object) is returned) |
0 commit comments