Skip to content

Commit

Permalink
fix panel ocmponent not showing label in data grid
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenMasterJacob20011 committed Dec 5, 2024
1 parent b1456a5 commit 048bd4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/templates/bootstrap3/panel/form.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="panel panel-{{ctx.component.theme}}">
{% if (!ctx.component.hideLabel || ctx.builder || ctx.component.collapsible || ctx.component.tooltip) { %}
{% if (!ctx.label.hidden || ctx.builder || ctx.component.collapsible || ctx.component.tooltip) { %}
<div class="panel-heading"
{% if (ctx.component.collapsible) { %}
tabindex="0"
Expand All @@ -13,7 +13,7 @@
{% if (ctx.component.collapsible) { %}
<i class="formio-collapse-icon {{ctx.iconClass(ctx.collapsed ? 'plus' : 'minus')}} text-muted" data-title="Collapse Panel"></i>
{% } %}
{% if (!ctx.component.hideLabel || ctx.builder) { %}
{% if (!ctx.label.hidden || ctx.builder) { %}
{{ctx.t(ctx.component.title, { _userInput: true })}}
{% } %}
{% if (ctx.component.tooltip) { %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/bootstrap4/panel/form.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="mb-2 card border">
{% if (!ctx.component.hideLabel || ctx.builder || ctx.component.collapsible || ctx.component.tooltip) { %}
{% if (!ctx.label.hidden || ctx.builder || ctx.component.collapsible || ctx.component.tooltip) { %}
<div class="card-header {{ctx.transform('class', 'bg-' + ctx.component.theme)}}"
{% if (ctx.component.collapsible) { %}
tabindex="0"
Expand All @@ -13,7 +13,7 @@
{% if (ctx.component.collapsible) { %}
<i class="formio-collapse-icon {{ctx.iconClass(ctx.collapsed ? 'plus-square-o' : 'minus-square-o')}} text-muted" data-title="Collapse Panel"></i>
{% } %}
{% if (!ctx.component.hideLabel || ctx.builder) { %}
{% if (!ctx.label.hidden || ctx.builder) { %}
{{ctx.t(ctx.component.title, { _userInput: true })}}
{% } %}
{% if (ctx.component.tooltip) { %}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/bootstrap5/panel/form.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="mb-2 card border">
{% if (!ctx.component.hideLabel || ctx.builder || ctx.component.collapsible || ctx.component.tooltip) { %}
{% if (!ctx.label.hidden || ctx.builder || ctx.component.collapsible || ctx.component.tooltip) { %}
<div class="card-header {{ctx.transform('class', 'bg-' + ctx.component.theme)}}"
{% if (ctx.component.collapsible) { %}
tabindex="0"
Expand All @@ -13,7 +13,7 @@
{% if (ctx.component.collapsible) { %}
<i class="formio-collapse-icon {{ctx.iconClass(ctx.collapsed ? 'plus-square-o' : 'minus-square-o')}} text-muted" data-title="Collapse Panel"></i>
{% } %}
{% if (!ctx.component.hideLabel || ctx.builder) { %}
{% if (!ctx.label.hidden || ctx.builder) { %}
{{ctx.t(ctx.component.title, { _userInput: true })}}
{% } %}
{% if (ctx.component.tooltip) { %}
Expand Down

0 comments on commit 048bd4d

Please sign in to comment.