Hello,
I want to build a full-page app with two tabs like the picture below. I want when users click on the icon, they’ll have two options. Is there any way to do that?
Thanks,
Nhat Nguyen
Hello,
I want to build a full-page app with two tabs like the picture below. I want when users click on the icon, they’ll have two options. Is there any way to do that?
Thanks,
Nhat Nguyen
Hi @Nhat_Nguyen
Interesting use case. However, I don’t think we have such capabilities for now.
@shravan.balasubraman can correct me if I am wrong
@Nhat_Nguyen
There is no way to do it via client.interface
object . However, you can do this through Freshworks Crayons Library’s select-option component.
Write the options html inside a div container, place it near the app icon through css (with display:none) and programatically show it if the app is initialized (app icon gets clicked).
function openOptions() {
// Programatically open crayons select options (or any other similar UI component) using `display=block`
}
client.events.on('app.activated', openOptions);
Hope this works!