Telerik.Web.Mvc.UI.CalendarHtmlBuilder.HeaderCellTag C# (CSharp) Method

HeaderCellTag() public method

public HeaderCellTag ( string dayOfWeek ) : IHtmlNode
dayOfWeek string
return IHtmlNode
        public IHtmlNode HeaderCellTag(string dayOfWeek)
        {
            IHtmlNode cell = new HtmlTag("th")
                             .Attributes(new { scope = "col", title = dayOfWeek})
                             .Text(dayOfWeek.Substring(0, 1));

            if (dayOfWeek.Length > 3)
                cell.Attribute("abbr", dayOfWeek.Substring(0, 3));

            return cell;
        }