Tengo una tabla con tal encabezado:
<th key={col.label} style={col.size} class={col.class} scope="col" height="20">Tomo etiquetas de columnas (col es un elemento del ciclo). Columns es una matriz con tales elementos.
this.columns.push({ label: this.labels.lbl_forecastYTD + ' - ' + this.labels.lbl_opportunity , fieldName: 'GainSum__c', type: 'number', size: "width: 21%;", class: BASE_HEADER_CLASS, borderRightSize: "width: 21%;" });Realmente quiero agregar un salto de línea a las etiquetas, pero '\n' no parece funcionar. ¡Gracias!
Use th { white-space: pre; } y \n funcionarán.