Exemplo n.º 1
0
 protected override void OnAfterRender(bool firstRender)
 {
     base.OnAfterRender(firstRender);
     if (firstRender == true && DocsPage != null && !String.IsNullOrWhiteSpace(Title))
     {
         DocsPage.AddSection(SectionInfo, Section);
     }
 }
Exemplo n.º 2
0
    protected override void OnInitialized()
    {
        base.OnInitialized();
        var count = DocsPage.IncrementSectionCount();

        _renderImmediately = count < QueueService.Capacity;

        Level = (ParentSection?.Level ?? -1) + 1;
    }
Exemplo n.º 3
0
    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,
        };
    }