Class ContentApp
Represents a content app.
Inheritance
Namespace: Umbraco.Cms.Core.Models.ContentEditing
Assembly: Umbraco.Core.dll
Syntax
public class ContentApp : object
Remarks
Content apps are editor extensions.
Properties
View SourceActive
Gets a value indicating whether the app is active.
Declaration
public bool Active { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Normally reserved for Angular to deal with but in some cases this can be set on the server side.
Alias
Gets the unique alias of the content app.
Declaration
public string Alias { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Must be a valid javascript identifier, ie no spaces etc.
Badge
Gets or sets the content app badge.
Declaration
public ContentAppBadge Badge { get; set; }
Property Value
Type | Description |
---|---|
Content |
Icon
Gets the icon of the content app.
Declaration
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Must be a valid helveticons class name (see http://hlvticons.ch/).
Name
Gets the name of the content app.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
View
Gets the view for rendering the content app.
Declaration
public string View { get; set; }
Property Value
Type | Description |
---|---|
System. |
ViewModel
The view model specific to this app
Declaration
public object ViewModel { get; set; }
Property Value
Type | Description |
---|---|
System. |
Weight
Gets or sets the weight of the content app.
Declaration
public int Weight { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Content apps are ordered by weight, from left (lowest values) to right (highest values).
Some built-in apps have special weights: listview is -666, content is -100 and infos is +100.
The default weight is 0, meaning somewhere in-between content and infos, but weight could be used for ordering between user-level apps, or anything really.