在剑道对话框服务窗口的内容中插入换行符。 @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; }