![]() btnSubmit_Click calls AddJsLink, which does the following:Ĭreates a string representing a script block definition. In Figure 1, choosing Embed customization calls btnSubmit_Click in default.aspx. Screen shot of new subsite link removed from the Site Contents page Screen shot of status bar added to all pagesįigure 3. Removing the new subsite link from Site Contents as shown in Figure 3.įigure 2. Screen shot of Core.EmbedJavaScript add-in start pageĬhoosing Embed customization customizes the SharePoint site by:Ĭreating a status bar message on all pages in the SharePoint site, as shown in Figure 2. When you run this code sample, a provider-hosted add-in appears, as shown in Figure 1.įigure 1. To get started, download the Core.EmbedJavaScript sample add-in from the Office 365 Developer patterns and practices project on GitHub. Use this solution if you want to apply UI updates to your SharePoint site by using JavaScript (sometimes referred to as the Embed JavaScript technique) instead of creating custom master pages. The Core.EmbedJavaScript sample add-in adds a status bar message to all pages on a SharePoint site, and removes the new subsite link from the Site Contents page by using JavaScript. Notice also that you should not take a dependency on the html page structure or on the out-of-the-box CSS style names as these might be adjusted without a notice. You cannot use this option with modern experiences in SharePoint Online, like with communication sites. This extensibility option is only available for classic SharePoint experiences.
0 Comments
Leave a Reply. |