File tree 3 files changed +4
-7
lines changed
packages/shared-components/src/formio
template/templates/navdesign/datagrid
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ class BaseComponent extends FormioReactComponent {
23
23
static schema ( values ) {
24
24
return Field . schema ( {
25
25
fieldSize : 'input--xxl' ,
26
- dataGridLabel : true ,
27
26
validateOn : 'blur' ,
28
27
...values ,
29
28
} ) ;
@@ -50,7 +49,7 @@ class BaseComponent extends FormioReactComponent {
50
49
}
51
50
52
51
getHideLabel ( ) {
53
- return this . labelIsHidden ( ) ;
52
+ return this . component ?. hideLabel ?? false ;
54
53
}
55
54
56
55
/**
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const editFormValuesGrid = (): Component => ({
12
12
key : 'label' ,
13
13
input : true ,
14
14
type : 'textfield' ,
15
- dataGridLabel : false ,
15
+ hideLabel : true ,
16
16
validate : {
17
17
required : true ,
18
18
} ,
@@ -22,7 +22,7 @@ const editFormValuesGrid = (): Component => ({
22
22
key : 'value' ,
23
23
input : true ,
24
24
type : 'textfield' ,
25
- dataGridLabel : false ,
25
+ hideLabel : true ,
26
26
allowCalculateOverride : true ,
27
27
calculateValue : 'value = _.camelCase(row.label);' ,
28
28
} ,
Original file line number Diff line number Diff line change 4
4
{{ ctx.component.hover ? 'table-hover' : ''}}
5
5
{{ ctx.component.condensed ? 'table-sm' : ''}}
6
6
" {% if (ctx.component.layoutFixed) { %}style =" table-layout: fixed;" {% } %} >
7
- {% if (ctx.hasHeader) { %}
8
7
<thead >
9
8
<tr >
10
9
{% if (ctx.component.reorder) { %}<th ></th >{% } %}
11
10
{% ctx.columns.forEach(function(col) { %}
12
11
<th class =" {{col.validate && col.validate.required ? 'field-required' : ''}}" >
13
- {{ col.hideLabel ? '' : ctx.t(col.label || col.title, { _userInput: true }) }}
12
+ {{ ctx.t(col.label || col.title, { _userInput: true }) }}
14
13
{% if (col.tooltip) { %} <i ref =" tooltip" data-title =" {{col.tooltip}}" class =" {{ctx.iconClass('question-sign')}} text-muted" data-tooltip =" {{col.tooltip}}" ></i >{% } %}
15
14
</th >
16
15
{% }) %}
33
32
{% } %}
34
33
</tr >
35
34
</thead >
36
- {% } %}
37
35
<tbody ref =" {{ctx.datagridKey}}-tbody" data-key =" {{ctx.datagridKey}}" >
38
36
{% ctx.rows.forEach(function(row, index) { %}
39
37
{% if (ctx.hasGroups && ctx.groups[index]) { %}
You can’t perform that action at this time.
0 commit comments