Skip to content

Commit e1b51a6

Browse files
committed
Move BeforeTemplate before buttons
This is a potentially breaking change
1 parent 4cfda46 commit e1b51a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Griddly/Views/Shared/Griddly/Griddly.cshtml

+4-4
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@
121121
@: data-griddly-currency-symbol="@Griddly.Mvc.GriddlyExtensions.CurrencySymbol"
122122
@: @Html.AttributeIf("data-griddly-defaultsort", defaultSort != null && defaultSort.Any(), Html.AttributeEncode(Json.Encode(defaultSort.Select(x => new { Field = x.Field, Direction = x.Direction.ToString() }))))
123123
@: @settings.HtmlAttributes.ToHtmlAttributes()>
124+
if (settings.BeforeTemplate != null)
125+
{
126+
@settings.BeforeTemplate(null)
127+
}
124128
if (settings.Buttons.Any())
125129
{
126130
<div class="buttons">
@@ -139,10 +143,6 @@
139143
}
140144
</div>
141145
}
142-
if (settings.BeforeTemplate != null)
143-
{
144-
@settings.BeforeTemplate(null)
145-
}
146146
@:<div class="griddly-scrollable-container">
147147
@:<table class="@settings.TableClassName" @settings.TableHtmlAttributes.ToHtmlAttributes()>
148148
<colgroup>

0 commit comments

Comments
 (0)