Class IndexModel
Inheritance
System.Object
IndexModel
Assembly: Volo.Docs.Web.dll
Syntax
public class IndexModel : AbpPageModel
Constructors
IndexModel(IDocumentAppService, IDocumentToHtmlConverterFactory, IProjectAppService, IOptions<DocsUiOptions>, IDocumentSectionRenderer)
Declaration
public IndexModel(IDocumentAppService documentAppService, IDocumentToHtmlConverterFactory documentToHtmlConverterFactory, IProjectAppService projectAppService, IOptions<DocsUiOptions> options, IDocumentSectionRenderer documentSectionRenderer)
Parameters
Properties
DefaultLanguageCode
Declaration
public string DefaultLanguageCode { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Document
Declaration
public DocumentWithDetailsDto Document { get; }
Property Value
| Type |
Description |
| DocumentWithDetailsDto |
|
DocumentFound
Declaration
public bool DocumentFound { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
DocumentLanguageIsDifferent
Declaration
public bool DocumentLanguageIsDifferent { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
DocumentName
Declaration
public string DocumentName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
DocumentNameWithExtension
Declaration
public string DocumentNameWithExtension { get; }
Property Value
| Type |
Description |
| System.String |
|
DocumentPreferences
Declaration
public DocumentParametersDto DocumentPreferences { get; set; }
Property Value
| Type |
Description |
| DocumentParametersDto |
|
DocumentsUrlPrefix
Declaration
public string DocumentsUrlPrefix { get; set; }
Property Value
| Type |
Description |
| System.String |
|
FullSearchEnabled
Declaration
public bool FullSearchEnabled { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
LanguageCode
Declaration
public string LanguageCode { get; set; }
Property Value
| Type |
Description |
| System.String |
|
LanguageConfig
Declaration
public LanguageConfig LanguageConfig { get; set; }
Property Value
| Type |
Description |
| LanguageConfig |
|
LanguageSelectListItems
Declaration
public List<SelectListItem> LanguageSelectListItems { get; set; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<SelectListItem> |
|
LatestVersionInfo
Declaration
public VersionInfoViewModel LatestVersionInfo { get; }
Property Value
LoadSuccess
Declaration
public bool LoadSuccess { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Navigation
Declaration
public NavigationNode Navigation { get; }
Property Value
| Type |
Description |
| NavigationNode |
|
Project
Declaration
public ProjectDto Project { get; set; }
Property Value
| Type |
Description |
| ProjectDto |
|
ProjectFound
Declaration
public bool ProjectFound { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
ProjectName
Declaration
public string ProjectName { get; set; }
Property Value
| Type |
Description |
| System.String |
|
ProjectSelectItems
Declaration
public List<SelectListItem> ProjectSelectItems { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<SelectListItem> |
|
ShowProjectsCombobox
Declaration
public bool ShowProjectsCombobox { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
UserPreferences
Declaration
public DocumentRenderParameters UserPreferences { get; set; }
Property Value
Version
Declaration
public string Version { get; set; }
Property Value
| Type |
Description |
| System.String |
|
VersionSelectItems
Declaration
public List<SelectListItem> VersionSelectItems { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<SelectListItem> |
|
Methods
CreateVersionLink(VersionInfoViewModel, String, String)
Declaration
public string CreateVersionLink(VersionInfoViewModel latestVersion, string version, string documentName = null)
Parameters
| Type |
Name |
Description |
| VersionInfoViewModel |
latestVersion |
|
| System.String |
version |
|
| System.String |
documentName |
|
Returns
| Type |
Description |
| System.String |
|
GetDescription()
Declaration
public string GetDescription()
Returns
| Type |
Description |
| System.String |
|
GetSpecificVersionOrLatest()
Declaration
public string GetSpecificVersionOrLatest()
Returns
| Type |
Description |
| System.String |
|
OnGetAsync()
Declaration
public virtual Task<IActionResult> OnGetAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<IActionResult> |
|
SetDocumentPreferencesAsync()
Declaration
public Task SetDocumentPreferencesAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Extension Methods