Here you can find the instructions on how to use the `EmbeddableWidget` API.
It is accessible in two ways described below.
## EmbeddableWidget Engine API
This way is usually used while developing the widget, typically in the `index` file of your widget project. There you can define very general settings for the widget.
Through the global `window` API you can access widget-specific options and methods. This will help you to modify the widget's state or look at runtime.
This function is generic to provide the developer with the ability to modify any widget's element in any way. We have implemented basic methods below to [inject style](#injectInlineStyle) or [add/remove class](#injectCSSClass).
> If `querySelector` is not passed, this function will only modify the widget's root element (specified by UID).
> If `querySelector` is passed, this function will modify all elements found by the selector under a particular widget in the DOM (specified by UID).