Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
320 views

Script Lab Tutorial

Script Lab is a tool that allows users to create, run, and share code snippets for the Office JavaScript API. The tutorial introduces the basic Script Lab workflow including enabling editing, launching the code pane, opening sample snippets, running code to color cells, and sharing snippets on GitHub.

Uploaded by

Angela Biro
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
320 views

Script Lab Tutorial

Script Lab is a tool that allows users to create, run, and share code snippets for the Office JavaScript API. The tutorial introduces the basic Script Lab workflow including enabling editing, launching the code pane, opening sample snippets, running code to color cells, and sharing snippets on GitHub.

Uploaded by

Angela Biro
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Script Lab

Create, run, and share Office JavaScript API snippets

This tutorial will introduce you to a basic Script Lab


coding workflow. Let's set up first:

Enable editing and trust Script Lab.

Launch the Code pane and enlarge it for a better fit.


Open the Basic API call sample snippet.

Let's go>
Run a snippet

1 Open the Run pane from the Script Lab tab


to code and run side-by-side.
. In Run, select the snippet you are currently
editing to sync the Code and Run panes.

Click here to select this cell

2. Select the cell to color it

3. Into the run pane, click the Run Code button


color the cell yellow.

< Back Next >


Change the code

1 Inandthechange
code, find the entry for "yellow",
it to "blue".
.
Click here to select this cell

2. Select the second cell to color it with blue.

3. Run the code to color the cell blue.

< Back Next >


Share your snippets

Check out other samples in the samples section


to learn about the rest of the Office JavaScript
API.

You can share your code snippets as gists


directly from Script Lab by signing in to your
GitHub account.

< Back Learn More >


Script Lab
Create, run and share Office API snippets.

Office JavaScript API


Learn about the API and
the functionality it offers
Learn more

Fabric UI
Fabric UI components,
styles and design
Learn more

Add-in UX Design
UX documentation and
design recommendations
Learn more

< Back Start over

You might also like