Skip to content

[vaadin-message] Allow adding components to message #10278

@TatuLund

Description

@TatuLund

Describe your motivation

When I am using MessageList to integrate AI assistant with my application, sometimes the response can have data attached which is better visualized with Chart, Grid or Html component for example. Hence it would be beneficial if vaadin-message, i.e. MessageListItem in Java would allow inlined component.

Describe the solution you'd like

I would assume the most straightforward approach would be to add a named slot for components / attachments to vaadin-message. In Java MessageListItem then should have method like add(Component component...).

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions