Skip to content

Commit

Permalink
Merge pull request #225 from DFE-Digital/fix/contentful-table-renderer
Browse files Browse the repository at this point in the history
re-added table renderers to gov uk table renderer
  • Loading branch information
DanielClarkeEducation authored Jul 4, 2024
2 parents 05800e1 + 08e4060 commit 0b3615c
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 0b3615c

Please sign in to comment.