Class IndexModel
Assembly: Volo.Docs.Web.dll
Syntax
public class IndexModel : AbpPageModel, IAsyncPageFilter, IPageFilter, IFilterMetadata
Constructors
IndexModel(IDocumentAppService, IDocumentToHtmlConverterFactory, IProjectAppService, IOptions<DocsUiOptions>, IDocumentSectionRenderer)
Declaration
public IndexModel(IDocumentAppService documentAppService, IDocumentToHtmlConverterFactory documentToHtmlConverterFactory, IProjectAppService projectAppService, IOptions<DocsUiOptions> options, IDocumentSectionRenderer documentSectionRenderer)
Parameters
Properties
AlternativeOptionLinkQueries
Declaration
public List<string> AlternativeOptionLinkQueries { get; set; }
Property Value
DefaultLanguageCode
Declaration
public string DefaultLanguageCode { get; set; }
Property Value
DocsLinkGenerator
Declaration
protected IDocsLinkGenerator DocsLinkGenerator { get; }
Property Value
Document
Declaration
public DocumentWithDetailsDto Document { get; }
Property Value
DocumentFound
Declaration
public bool DocumentFound { get; set; }
Property Value
DocumentLanguageCode
Declaration
public string DocumentLanguageCode { get; set; }
Property Value
DocumentName
Declaration
[BindProperty(SupportsGet = true)]
public string DocumentName { get; set; }
Property Value
DocumentNameWithExtension
Declaration
public string DocumentNameWithExtension { get; }
Property Value
DocumentNavigationsDto
Declaration
public DocumentNavigationsDto DocumentNavigationsDto { get; }
Property Value
DocumentPageTitle
Declaration
public string DocumentPageTitle { get; }
Property Value
DocumentPreferences
Declaration
public DocumentParametersDto DocumentPreferences { get; set; }
Property Value
DocumentsUrlPrefix
Declaration
public string DocumentsUrlPrefix { get; set; }
Property Value
FullSearchEnabled
Declaration
public bool FullSearchEnabled { get; set; }
Property Value
IsLatestVersion
Declaration
public bool IsLatestVersion { get; }
Property Value
IsVersionPreview
Declaration
public bool IsVersionPreview { get; set; }
Property Value
LanguageCode
Declaration
[BindProperty(SupportsGet = true)]
public string LanguageCode { get; set; }
Property Value
LanguageConfig
Declaration
public LanguageConfig LanguageConfig { get; set; }
Property Value
LanguageSelectListItems
Declaration
public List<SelectListItem> LanguageSelectListItems { get; set; }
Property Value
LatestVersionInfo
Declaration
public VersionInfoViewModel LatestVersionInfo { get; }
Property Value
LoadSuccess
Declaration
public bool LoadSuccess { get; }
Property Value
LocalEventBus
Declaration
protected ILocalEventBus LocalEventBus { get; }
Property Value
Navigation
Declaration
public NavigationNode Navigation { get; }
Property Value
Project
Declaration
public ProjectDto Project { get; set; }
Property Value
ProjectFound
Declaration
public bool ProjectFound { get; set; }
Property Value
ProjectName
Declaration
[BindProperty(SupportsGet = true)]
public string ProjectName { get; set; }
Property Value
ProjectSelectItems
Declaration
public List<SelectListItem> ProjectSelectItems { get; }
Property Value
ShowProjectsCombobox
Declaration
public bool ShowProjectsCombobox { get; set; }
Property Value
ShowProjectsComboboxLabel
Declaration
public bool ShowProjectsComboboxLabel { get; set; }
Property Value
UserPreferences
Declaration
public DocumentRenderParameters UserPreferences { get; set; }
Property Value
Version
Declaration
[BindProperty(SupportsGet = true)]
public string Version { get; set; }
Property Value
VersionSelectItems
Declaration
public List<SelectListItem> VersionSelectItems { get; }
Property Value
Methods
BuildDocumentUrl(string, string, string, string)
Declaration
public string BuildDocumentUrl(string projectName, string languageCode, string version, string documentName)
Parameters
Returns
CreateDocumentLink(string)
Declaration
public string CreateDocumentLink(string documentName)
Parameters
Type |
Name |
Description |
string |
documentName |
|
Returns
CreateVersionLink(VersionInfoViewModel, string, string)
Declaration
public string CreateVersionLink(VersionInfoViewModel latestVersion, string version, string documentName = null)
Parameters
Returns
GetDescription()
Declaration
public string GetDescription()
Returns
GetFullUrlOfTheLatestDocument()
Declaration
public string GetFullUrlOfTheLatestDocument()
Returns
GetSpecificVersionOrLatest()
Declaration
public string GetSpecificVersionOrLatest()
Returns
OnGetAsync()
Declaration
public virtual Task<IActionResult> OnGetAsync()
Returns
OnSectionRenderingErrorAsync(Exception)
Declaration
protected virtual Task OnSectionRenderingErrorAsync(Exception e)
Parameters
Returns
Implements
Extension Methods