JavaScript Interfaces for X for Websites
If you’re integrating your site with X using X for Websites and Web Intents, you can enhance your application using JavaScript. By default, widgets-js will find markup in a page and convert basic, functional mark-up into rich interactive widgets. In addition, there are a number of functions of widgets-js that allow developers to work with X content dynamically, after the page has loaded.
This documentation has been broken into chapters:
- Setting up X for Websites
- Controlling Loading and Initialization of Widgets
- Factory functions to generate widgets
- Events from widgets and Web Intents
These functions make it possible to integrate a X user’s content into your site dynamically in a JavaScript application, and integrate user interactions into your own application experience.
Please ask questions and share your code and examples in the developer forum. You may also refer to the main X for Websites documentation.