Syntax
REST API Endpoint:
https://SharePointSiteURL/_api/web?$select=QuickLaunchEnabled
REST API endpoint to use in Add_ins:
<appweburl>/_api/SP.AppContextSite(@target)/web?$select=QuickLaunchEnabled&@target=<hostweburl>
Embed Code Snippet
The following code snippet can be embed in SharePoint page or in content editor web part as a script. This example used to check whether the quick launch is enabled for the SharePoint website.
- <script type="text/javascript" src="/SiteAssets/Scripts/jquery.min.js"></script>
- <script type="text/javascript">
- $.ajax(
- {
- url: _spPageContextInfo.webAbsoluteUrl + "/_api/web?$select=quicklaunchenabled", //THE ENDPOINT
- method: "GET",
- headers:
- {
- "Accept": "application/json; odata=verbose"
- },
- success: function(data)
- {
- //RESULTS HERE!!
- console.log(data.d.QuickLaunchEnabled)
- if (data.d.QuickLaunchEnabled)
- alert('Quick launch enabled on this site.');
- else
- alert('Quick launch disabled on this site.');
- }
- });
- </script>
Add-in Code Snippet

Join the conversation! Your thoughts help the community grow.