忽略对话框服务内容中的换行符

问题描述 投票:1回答:1

在剑道对话框服务窗口的内容中插入换行符。 @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-ui-angular2
1个回答
0
投票

修复是覆盖类的Kendo样式.k-dialog-content {//允许对话框弹出空格中的新行和空格:pre-wrap; }

© www.soinside.com 2019 - 2024. All rights reserved.