Module for the plain widget adapter factory. In LaxarJS plain widgets are defined as widgets without dependency to a specific view library or framwork, and instead would be implemented using simple DOM access and manipulation.
A developer will never call any of the API of this module. The documentation solely exists as a blueprint for custom widget adapters and to explain certain concepts.
Initializes the adapter module and returns a factory for plain widgets. Note that the plain adapter doesn't need all the provided arguments, but they are listed here for documentation purposes.
||the artifacts available to this adapter factory|
||all widgets, that are implemented in the adapter's technology|
||all controls, that are implemented in the adapter's technology|
||a selection of services adapter implementations may need to fulfill their task|
||common utilities, that may be useful to a widget adapter|
||the artifact provider instance|
||access to the application configuration|
||the global event bus. Note that an adapter should not sent any events by itself. It may instead be necessary that the adapter makes the event bus globally available to its widgets (for example like the AngularJS 1.x adapter), or that it registers an inspector|
||the heartbeat instance. Depending on the underlying view technology (like AngularJS 1.x) it may be important to get notified when to re-render the user interface. For that reason an adapter can register a callback at the heartbeat, that gets called after all events of the current cycle were processed|
||the global log instance|
||the global storage factory api|
||access to the tooling api|
||the DOM node the laxar application is bootstrapped on. An adapter should never try to access DOM nodes that are not the
||the factory for plain widget adapters|
A factory for plain widget adapters.
Creates a new adapter instance for the given widget environment.
||the environment for the widget to create and manage|
||the DOM node that the widget's DOM fragment should be inserted into|
||the name of the widget to load, exactly as specified by the widget descriptor|
||the services for this widget instance|
||a function that the adapter must call with a map of all to-be-injected services, just before creating the controller|
||the adapter instance|