Skip to content

3.2.0.alpha1

Pre-release
Pre-release
Compare
Choose a tag to compare
@tulioag tulioag released this 27 May 14:17
· 526 commits to main since this release
cd9acf0

Add MessageConfigurator API to customize messages

Enables changing the properties of MessageListItem after CollaborationMessageList has generated them.

For example, theme variants can be added and removed to differentiate the current user's own messages from the others .

collaborationMessageList.setMessageConfigurator((message, user) -> {
   if (user.equals(localUser)) {
       message.addThemeNames("outbound");
   }
});

Related issue: #30

Compatibility

This version is targeted for Vaadin 21, and will be included in the following Vaadin 21 pre-release.