|
|
|
@ -12,6 +12,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Grid |
|
|
|
|
|
|
|
ProcessVerticalAlign(output); |
|
|
|
ProcessHorizontalAlign(output); |
|
|
|
ProcessGutters(output); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual void ProcessVerticalAlign(TagHelperOutput output) |
|
|
|
@ -33,5 +34,15 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Grid |
|
|
|
|
|
|
|
output.Attributes.AddClass("justify-content-" + TagHelper.HAlign.ToString().ToLowerInvariant()); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual void ProcessGutters(TagHelperOutput output) |
|
|
|
{ |
|
|
|
if (TagHelper.Gutters ?? true) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
output.Attributes.AddClass("no-gutters"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |