SP.PageType enumeration
Page Type is a signed 1-byte integer that is used to represent the possible page types.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var SP.PageType = {defaultView : "Undefined",dialogView : "Undefined",displayForm : "Undefined",displayFormDialog : "Undefined",editForm : "Undefined",editFormDialog : "Undefined",invalid : "Undefined",newForm : "Undefined",newFormDialog : "Undefined",normalView : "Undefined",pagE_MAXITEMS : "Undefined",solutionForm : "Undefined",view : "Undefined",registerEnum : "Undefined"}
Members
The PageType object enumeration has the following members.
Member |
Value |
Description |
---|---|---|
defaultView |
0 |
Enumeration whose values specify a page that is the default view for a list. |
dialogView |
2 |
Enumeration whose values specify a page suitable for display within a dialog box on a client computer. |
displayForm |
4 |
Enumeration whose values specify a list form for displaying a list item. |
displayFormDialog |
5 |
Enumeration whose values specify a list form for displaying a list item, suitable for display within a dialog box on a client computer. |
editForm |
6 |
Enumeration whose values specify a list form for editing a list item. |
editFormDialog |
7 |
Enumeration whose values specify a list form for editing a list item, suitable for display within a dialog box on a client computer. |
invalid |
-1 |
Enumeration whose values specify a page that does not correspond to a list view or a list form. |
newForm |
8 |
Enumeration whose values specify a list form for creating a new list item. |
newFormDialog |
9 |
Enumeration whose values specify a list form for creating a new list item, suitable for display within a dialog box on a client computer. |
normalView |
1 |
Enumeration whose values specify a page that is a list view and is not the default view for a list. |
pagE_MAXITEMS |
11 |
Enumeration whose values specify the total number of valid page types. |
solutionForm |
10 |
Enumeration whose values specify a list form for displaying or editing a list item and represented by a form template (.xsn) file. |
view |
3 |
Enumeration whose values specify a page that is a list view. |
registerEnum |
Undefined |
Remarks
The reserved Page Type values are specified as follows.
Value |
Description |
---|---|
-1 |
Does not correspond to a view or a form of a list. |
0 |
Default view of the corresponding list. This view is displayed whenever this list is viewed without an explicit view being specified. |
1 |
A view of the corresponding list, but not the default view. |
2 |
This value is only used internally within implementation-specific code and is never stored in a database. |
3 |
This value is only used internally within implementation-specific code and is never stored in a database. |
4 |
A display form of a list, suitable for displaying a single list item in read-only mode. |
5 |
This value is only used internally within implementation-specific code and is never stored in a database. |
6 |
An edit form for a list, suitable for presenting UI to update the properties of a list item. |
7 |
Used to represent edit forms of a list suitable for displaying in HTML file dialogs to a client application. |
8 |
A new form for a list, suitable for presenting UI to create a new list item. |
9 |
This value is from a previous implementation and is no longer valid. |
10 |
This value is only used internally within implementation-specific code and is never stored in a database. |