OfficeJS is the new JavaScript extensibility model for Microsoft Office client applications. You can extend Office applications that run on Windows, web, iOS, and the Mac. This model is applicable to Office client applications starting with Office 2013. Please read the tag info for additional guidance on how to increase the chance that you'll get a high quality answer to your questions.
For questions about the JavaScript and REST based Office Add-ins APIs.
Office.js is a JavaScript library developed by Microsoft and used to develop Office Add-ins (formerly Apps for Office). The library contains functions for every Office application (for example getting data selected by the user) and several objects and functions useful in the development of Outlook add-ins. The library allows you to develop three types of add-ins:
- Content Add-ins
- Task Pane Add-ins
- Mail Add-ins
Content add-ins display and add-in application's contents within a window typically in the middle of an Office application. Task pane add-ins provide the add-in's content in a sidebar, and mail add-ins appear in the body.
Within the library, there are three main API's. The Shared API provides functions and objects useful to all types of add-ins. The Document API provides objects and functions useful in developing Content and Task Pane add-ins. The Mailbox API contains functions and objects useful for Mail add-in development.
Furthermore starting with Office 2016 and corresponding Office365 installations, there is a new set of richer functionality of APIs available for Excel and Word with many hundred new application specific functions available that allow developers to write rich add-ins for these applications.
Add-ins created using this library can run on any Office application regardless of device.
More information on this library may be found on dev.office.com.
When asking questions with this tag, please make sure to follow the points below
- If you are encountering a new API error OR
- If you are seeing issues on APIs that used to work OR
- If you are seeing issues on APIs that are working on other devices / installations of Office
Make sure you to include your Office build version in the question.
office-js should not be used for questions relating to Office Add-ins created using Visual Studio Tools for Office (VSTO) which have their own tag: vsto