问题描述
<div #containerRef>
<kendo-editor style="height:500px">
<kendo-toolbar>
<kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist>
</kendo-toolbar>
</kendo-editor>
</div>
但我的问题是下拉列表没有显示在控件内部,而是附加在根组件中。我尝试在 [PopupSettings]="{appendTo: containerRef}"
中添加 <kendo-toolbar>
,但仍然无效。
这是我在 .ts 中的代码
@ViewChild('containerRef',{ read: ViewContainerRef,static:true }) public containerRef: ViewContainerRef;
我在 chrome 开发人员工具中确认弹出窗口附加在根组件中,这就是为什么我使用 popupsettings 但它仍然不起作用。
有人遇到同样的问题吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)