在剑道对话服务窗口的内容中插入换行符。 @rogress 中的 Kendo Angular 6 对话框。换行符将被忽略。
尝试了 html 元素 br 和 \n, \n。例如它在连续一行中显示字符文本“\n\n\n”
const dialog: DialogRef = this.dialogService.open({
title: alertTitle,
content: "Want multiple line breaks here-> \n\n\n so this appears 3 lines below on another line",
actions: a,
width: 400,
height: 205,
minWidth: 250
});
修复方法是覆盖类的 Kendo 样式 .k-dialog-content { // 允许在对话框弹出窗口中添加新行和空格空白: pre-wrap; }
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)