Class BackOfficePreviewModel
Represents the model used for the backoffice content preview functionality.
Inheritance
object
Namespace: Umbraco.Cms.Core.Editors
Assembly: Umbraco.Core.dll
Syntax
public class BackOfficePreviewModel
Constructors
View SourceBackOfficePreviewModel(UmbracoFeatures, IEnumerable<ILanguage>)
Initializes a new instance of the BackOfficePreviewModel class.
Declaration
public BackOfficePreviewModel(UmbracoFeatures features, IEnumerable<ILanguage> languages)
Parameters
| Type | Name | Description |
|---|---|---|
| UmbracoFeatures | features | The Umbraco features configuration. |
| IEnumerable<ILanguage> | languages | The collection of available languages. |
Properties
View SourceDisableDevicePreview
Gets a value indicating whether device preview is disabled.
Declaration
public bool DisableDevicePreview { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Languages
Gets the collection of available languages for preview.
Declaration
public IEnumerable<ILanguage> Languages { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<ILanguage> |
PreviewExtendedHeaderView
Gets the path to an extended preview header view, if configured.
Declaration
public string? PreviewExtendedHeaderView { get; }
Property Value
| Type | Description |
|---|---|
| string |