@brokenice/nitrogen-library
v2.0.53
Published
Nitrogen library to create packages
Maintainers
Readme
Nitrogen JS Class
The Nitrogen class is the core JavaScript/TypeScript API that provides a centralized interface to interact with Nitrogen's functionality. It serves as the primary gateway for building custom components, managing events, handling navigation, showing notifications, making authenticated HTTP requests, and accessing the application state.
When building custom components, fields, actions, or any JavaScript-based feature within Nitrogen, you can access all methods from the Nitrogen class through the global window object.
Accessing the Nitrogen Class
The Nitrogen class is automatically available in the browser's global scope:
window.NitrogenFor TypeScript projects, you can access it with proper typing:
(window as any).Nitrogen