@esfaenza/es-table 11.2.129 → 11.2.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/esfaenza-es-table.umd.js +5 -2
- package/bundles/esfaenza-es-table.umd.js.map +1 -1
- package/bundles/esfaenza-es-table.umd.min.js +1 -1
- package/bundles/esfaenza-es-table.umd.min.js.map +1 -1
- package/esm2015/lib/components/es-table/es_table.component.js +2 -2
- package/esm2015/lib/core/handlers/DynamicModeHandler.js +2 -1
- package/esm2015/lib/core/handlers/ReportModeHandler.js +2 -2
- package/esm2015/lib/directives/es_th.directive.js +3 -1
- package/fesm2015/esfaenza-es-table.js +5 -2
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/package.json +1 -1
|
@@ -688,6 +688,8 @@
|
|
|
688
688
|
this.thType = null;
|
|
689
689
|
/** Sorgente dei valori disponibili per questa cella se il **Type** è di tipo 'enum' */
|
|
690
690
|
this.thSource = null;
|
|
691
|
+
/** Indica un contenuto statico da mostrare piuttosto che utilizzare il **Template**. Serve in caso questo oggetto venga generato programmaticamente */
|
|
692
|
+
this.thStaticContent = null;
|
|
691
693
|
/** Opzioni da applicare all'editor di questa colonna */
|
|
692
694
|
this.thEditorOptions = {};
|
|
693
695
|
}
|
|
@@ -1949,6 +1951,7 @@
|
|
|
1949
1951
|
DynamicModeHandler.prototype.getThFromOperation = function (op) {
|
|
1950
1952
|
var th = new EsThDirective(null);
|
|
1951
1953
|
th.th = op.id;
|
|
1954
|
+
th.thStaticContent = "";
|
|
1952
1955
|
return th;
|
|
1953
1956
|
};
|
|
1954
1957
|
DynamicModeHandler.prototype.getTdFromOperation = function (op) {
|
|
@@ -2308,7 +2311,7 @@
|
|
|
2308
2311
|
var clm = view.report_columns[i];
|
|
2309
2312
|
var th = new EsThDirective(null);
|
|
2310
2313
|
th.th = clm.id;
|
|
2311
|
-
th.thStaticContent = clm.description;
|
|
2314
|
+
th.thStaticContent = clm.description || null;
|
|
2312
2315
|
th.thBackgroundColor = clm.color;
|
|
2313
2316
|
th.thAlignment = clm.alignment;
|
|
2314
2317
|
th.thFormat = clm.format;
|
|
@@ -5021,7 +5024,7 @@
|
|
|
5021
5024
|
Orderable: th.thOrderable,
|
|
5022
5025
|
Template: th.Template,
|
|
5023
5026
|
// Se non è nessun contenuto né nessun template mostro semplicemente l'ID dell'header
|
|
5024
|
-
Content: th.thStaticContent
|
|
5027
|
+
Content: th.thStaticContent != null ? th.thStaticContent : th.Template ? '' : th.th,
|
|
5025
5028
|
Wrap: th.thWrap,
|
|
5026
5029
|
LeftBorder: th._lbord,
|
|
5027
5030
|
RightBorder: th._rbord,
|