简体   繁体   English

Twilio Flex AgentDesktopView 面板大小调整

[英]Twilio Flex AgentDesktopView Panel Sizing

For the 2 panels in the AgentDesktopView, I'm trying to adjust the size of Panel 1.对于 AgentDesktopView 中的 2 个面板,我正在尝试调整面板 1 的大小。

I've tried:我试过了:

flex.AgentDesktopView
   .defaultProps
   .splitterOptions
   .initialFirstPanelSize = '250px'

and

flex.AgentDesktopView
   .defaultProps
   .splitterOptions
   .minimumFirstPanelSize = '250px'

I've tried searching through docs and can't find much information around it.我试过搜索文档,但找不到太多关于它的信息。

Twilio developer evangelist here. Twilio 开发者布道师在这里。

If you have a plugin you can put the code in, you can try this如果你有一个插件,你可以把代码放进去,你可以试试这个

flex.AgentDesktopView.defaultProps.splitterOptions = {
      initialFirstPanelSize: "250px",
      minimumFirstPanelSize: "250px",
      //minimumSecondPanelSize: "xx%"
    };

Either the theme or these component options can be used ie.可以使用主题或这些组件选项。 if you're updating the config in the manager when you changed the options:如果您在更改选项时更新管理器中的配置:

manager.updateConfig(appConfig);

Let me know if this helps at all!让我知道这是否有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM