public override void Process(TagHelperContext context, TagHelperOutput output) { output.TagName = ""; var box = new BoxBase(); if (IsSolid) { box = new BoxSolidDecorator(box); } if (!string.IsNullOrWhiteSpace(Title)) { box = new BoxHeaderDecorator(box, Title); } box.Process(context, output); // output.Content.SetHtmlContent(solid); }
public BoxHeaderDecorator(BoxBase box, string title) { this.box = box; this.title = title; }
public BoxSolidDecorator(BoxBase box) { this.box = box; }