-1

How can I remove the 'end chat' button in twilio flex?

I tried with remove component but can't find the component related to end chat button. Where can I find the key for end chat button?

Flex.Component.Content.remove(key, {options});

enter image description here

tsikka
  • 191
  • 6

1 Answers1

0

The component containing the end chat button will be "TaskCanvasHeader" and key for it will be "actions"

flex.TaskCanvasHeader.Content.remove("actions");

I hope it helps!