Skip to content

Commit

Permalink
re-added table renderers to gov uk table renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielClarkeEducation committed Jul 2, 2024
1 parent a5c5996 commit 83ac398
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
using Contentful.Core.Models;
using Dfe.EarlyYearsQualification.Content.Extensions;
using Dfe.EarlyYearsQualification.Content.Renderers.GovUk;
using TableRenderer = Dfe.EarlyYearsQualification.Content.Renderers.GovUk.TableRenderer;
using TableRowRenderer = Dfe.EarlyYearsQualification.Content.Renderers.GovUk.TableRowRenderer;
using TableHeadingRenderer = Dfe.EarlyYearsQualification.Content.Renderers.GovUk.TableHeadingRenderer;
using TableCellRenderer = Dfe.EarlyYearsQualification.Content.Renderers.GovUk.TableCellRenderer;

namespace Dfe.EarlyYearsQualification.Content.Renderers.Entities.Implementations;

Expand All @@ -13,6 +17,11 @@ public HtmlTableRenderer()
{
Renderer.AddCommonRenderers()
.AddRenderer(new UnorderedListRenderer { Order = 18 });

Renderer.AddRenderer(new TableRenderer { Order = 19 });
Renderer.AddRenderer(new TableRowRenderer { Order = 20 });
Renderer.AddRenderer(new TableHeadingRenderer { Order = 21 });
Renderer.AddRenderer(new TableCellRenderer { Order = 22 });
}

public async Task<string> ToHtml(Document? content)
Expand Down

0 comments on commit 83ac398

Please sign in to comment.