Introduction:
In this post we will see the basics
about “Chrome Control” in apps for SharePoint 2013.
About Chrome Control:
The Chrome Control
downloads a copy of the style sheet used in the parent site and applies it to
the HTML pages in your client-side App. We can find the default style for any
site in the below URL format.
http://{SharePointSite}/_layouts/15/defaultcss.ashx
Chrome control basically
apply style sheet to App page.
Steps:
We need to dynamically load the "SP.UI.Controls.js" file, which is available in “/15 hive” path. We load this script using Jquery library as mentioned below.
Then create a collection
to hold the chrome control option values.
Finally, instantiate a
new Navigation object using the container <div> added to the page markup
in the previous step and make the object visible.
No comments:
Post a Comment