ticket_sidebar app: Controling size of the iframe

  • 25 April 2024
  • 1 reply
  • 15 views

Hello,

I am developing an app for the ticket_sidebar.  Are we able to control the vertical height of the app's panel? 

By default my app opens to a fairly small area.  This forces the user to do a lot of scrolling.

I tried using client.instance.resize({height:"500px"});, but it didn’t work

Is resizing the ticket_sidebar app in freshchat is possible or not, if yes then how do we proceed with it?

Thanks,


1 reply

Hi @Vimala B K ,

Yeah, it is possible to increase sidebar height. You can achieve this by using instance method. Here is a sample app that uses the same.

The method is used as follows

try {
client.instance.resize({ height: "400px" });
} catch (error) {
console.error(error);
}

Freshchat supports instance methods. However, Freshchat supports only 4 placeholders namely conversation_message_editor, conversation_user_info, conversation_background and messenger_home.

Furthermore, we encourage you to join our developer community for getting quicker resolution to the development related queries.

 

Regards,

Thakur

Reply