Show / Hide Table of Contents

Class IndexModel

Inheritance
System.Object
IndexModel
Namespace: Volo.Docs.Pages.Documents.Project
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
Type Name Description
IDocumentAppService documentAppService
IDocumentToHtmlConverterFactory documentToHtmlConverterFactory
IProjectAppService projectAppService
IOptions<DocsUiOptions> options
IDocumentSectionRenderer documentSectionRenderer

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
Type Description
VersionInfoViewModel

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
Type Description
DocumentRenderParameters

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

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft