protected override void OnAfterRender(bool firstRender) { base.OnAfterRender(firstRender); if (firstRender == true && DocsPage != null && !String.IsNullOrWhiteSpace(Title)) { DocsPage.AddSection(SectionInfo, Section); } }
protected override void OnInitialized() { base.OnInitialized(); var count = DocsPage.IncrementSectionCount(); _renderImmediately = count < QueueService.Capacity; Level = (ParentSection?.Level ?? -1) + 1; }
protected override void OnInitialized() { base.OnInitialized(); if (DocsPage == null || string.IsNullOrWhiteSpace(Title)) { return; } var parentTitle = DocsPage.GetParentTitle(Section) ?? string.Empty; if (string.IsNullOrEmpty(parentTitle) == false) { parentTitle += '-'; } var id = (parentTitle + Title).Replace(" ", "-").ToLowerInvariant(); SectionInfo = new DocsSectionLink { Id = id, Title = Title, }; }