0
我有colNames: ['1, 2, 3, first second third']
由幾個詞組成。我可以將second
和third
單詞移動到新行嗎?colNames newLine in jqgrid
我有colNames: ['1, 2, 3, first second third']
由幾個詞組成。我可以將second
和third
單詞移動到新行嗎?colNames newLine in jqgrid
的colNames
元素的含量表示HTML片段,其將被放置在列標題。因此,您可以使用例如"first<br>second third"
作爲colNames
的元素。
您可以嘗試新的行字符,如'first \ n second third' –
此方法不起作用 – kostya
您可以包含足夠的代碼以提供[可重現的示例](https://stackoverflow.com/help/mcve ),所以人們可以玩耍並提出可能的答案 –