File tree Expand file tree Collapse file tree
src/main/java/com/flowingcode/vaadin/addons/chatassistant Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848import com .vaadin .flow .dom .Style ;
4949import com .vaadin .flow .function .SerializableSupplier ;
5050import com .vaadin .flow .shared .Registration ;
51- import lombok .Getter ;
5251
5352import java .io .Serializable ;
5453import java .time .LocalDateTime ;
@@ -94,7 +93,6 @@ public class ChatAssistant<T extends Message> extends Div {
9493 private static final String DEFAULT_RESIZE_CLASS = "fc-chat-assistant-resize" ;
9594 private static final String DEFAULT_UNREAD_BADGE_CLASS = "fc-chat-assistant-unread-badge" ;
9695
97- @ Getter
9896 private Component headerComponent ;
9997 private Component footerContainer ;
10098 private final VirtualList <T > content ;
@@ -601,6 +599,11 @@ public void setHeaderComponent(Component component) {
601599 this .container .addComponentAsFirst (this .headerComponent );
602600 }
603601
602+ /** Returns the current component configured as the header of the chat window. */
603+ public Component getHeaderComponent () {
604+ return this .headerComponent ;
605+ }
606+
604607 /**
605608 * Allows changing the footer of the chat window.
606609 *
You can’t perform that action at this time.
0 commit comments