Replies: 1 comment 1 reply
-
Thank you for raising this issue! While it should still be possible to overwrite the name of the I've created an issue to improve the situation! As a workaround it should work to rebind container.rebind(ChatViewWidget).to(CustomChatViewWidget); And overwrite the constructor in your custom subclass: @injectable()
export class CustomChatViewWidget extends ChatViewWidget {
constructor(
@inject(ChatViewTreeWidget) treeWidget: ChatViewTreeWidget,
@inject(AIChatInputWidget) inputWidget: AIChatInputWidget
) {
super(treeWidget, inputWidget);
// Override the label
this.title.label = `Custom Label`; // New label
this.title.caption = `Custom Label`; // Optional: for the tooltip
}
} Be aware that the title is also set in teh Note that I haven't tested the workaround above directly. So I'm not 100 % sure that the code is correct and works. |
Beta Was this translation helpful? Give feedback.
-
Hi,
the default ai-chat title is Chat [EXPERIMENTAL], which is not good enough for product, is it possible to change it by custom extension code?
Beta Was this translation helpful? Give feedback.
All reactions