private IEnumerable <IHtmlContent> CreateInnerEventDetails(CellEvent calendarEventEvent) { if (!string.IsNullOrWhiteSpace(calendarEventEvent.Description)) { yield return(CreateDescription(calendarEventEvent)); } }
private IHtmlContent CreateDescription(CellEvent calendarEvent) { var description = CreateBasicElement(new List <IHtmlContent>(), "h2", value: calendarEvent.Description); var divWrapper = CreateBasicElement(new List <IHtmlContent> { description }, "div", new HtmlAttributes("task__detail")); return(divWrapper); }