Edit

Share via


Page class

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Exposes information that is associated with the SharePoint web page that is currently being displayed.

Remarks

The Page object provides access to information that is scoped to the current SharePoint web page, but not stored with the underlying SPListItem. Note that the PageContext.listItem may be undefined for pages that are not based on a SharePoint list, whereas the PageContext.page will never be undefined.

The concept of a "page" is subjective and defined by the router for a particular client-side application.

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Page class.

Properties

socialBarEnabled

Returns true if the Social Bar is enabled.

Property Details

socialBarEnabled

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Returns true if the Social Bar is enabled.

readonly socialBarEnabled: boolean;

Property Value

boolean

Remarks

The Social Bar will appear on all modern SharePoint pages with the exception of the home page of a site. It will give users the ability to like a page, see the number of views, likes, and comments on a page, and see the people who have liked a page.