Skip to content

feat: add message list item and text convenience API #7412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 13, 2025

Conversation

tomivirkki
Copy link
Member

@tomivirkki tomivirkki commented May 8, 2025

Description

Follow-up for #7370
Related to vaadin/platform#7601

Add convenience API to MessageList:

  • MessageList.addItem(messageListItem)
    • Enables the user to conveniently add new message items to MessageList. Currently this requires to call MessageList.setItems(updatedItems) with the new item included, which also causes the whole list of message items to get re-sent to the client. With addItem(), only the newly added item(s) get sent.
  • MessageListItem.appendText(text):
    • Enables the user to conveniently append text to a message list item (instead of having to call item.setText(item.getText() + text)

Type of change

Feature

@tomivirkki tomivirkki requested a review from DiegoCardoso May 8, 2025 09:12
Copy link

@sissbruecker sissbruecker merged commit 4be6df4 into main May 13, 2025
5 checks passed
@sissbruecker sissbruecker deleted the feat/message-list-convenience-api branch May 13, 2025 08:10
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.8.0.alpha7 and is also targeting the upcoming stable 24.8.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants