Beispiel #1
0
 private IEnumerable <IHtmlContent> CreateInnerEventDetails(CellEvent calendarEventEvent)
 {
     if (!string.IsNullOrWhiteSpace(calendarEventEvent.Description))
     {
         yield return(CreateDescription(calendarEventEvent));
     }
 }
Beispiel #2
0
        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);
        }