To call preview APIs within a snippet, you'll need to update the snippet's libraries to use the beta content delivery network (CDN) ( ) and the preview type definitions Additionally, some preview APIs are only accessible if you've signed up for the Office Insider program and are running an Insider build of Office. You can customize the HTML markup and CSS to experiment with element placement and styling as you prototype task pane design for your own add-in. In addition to JavaScript or TypeScript code that calls the Office JS API, each snippet also contains HTML markup that defines content of the task pane and CSS that defines the appearance of the task pane. You can run the samples to instantly see the result in the task pane or document, examine the samples to learn how the API works, and even use samples to prototype your own add-in.
#USING SCRIPT STUDIO HOW TO#
Get started quickly with a collection of built-in sample snippets that show how to complete tasks with the API. Script Lab offers a number of features to help you explore the Office JavaScript API and prototype add-in functionality. Sounds good so far? Take a look at this one-minute video to see Script Lab in action. You can even use Script Lab to try preview APIs.
![using script studio using script studio](https://i.imgur.com/1kLKpao.jpg)
Through Script Lab, you can access a library of samples to quickly try out features or you can use a sample as the starting point for your own code. It provides IntelliSense so you can see what's available and is built on the Monaco framework, the same framework used by Visual Studio Code. Script Lab is a tool for anyone who wants to learn how to develop Office Add-ins using the Office JavaScript API in Excel, Outlook, Word, and PowerPoint. Script Lab is a convenient tool to add to your development toolkit as you prototype and verify functionality you want in your own add-in. The Script Lab and Script Lab for Outlook add-ins, available free from AppSource, enable you to explore the Office JavaScript API while you're working in an Office program such as Excel or Outlook.