CodeCoupler UI Stage
A stage is a class derived from the CodeCoupler base class
Stage. A stage manipulates the current
stage and provides one element which will be the new stage from then on.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
The only method you have to provide is
async init(env, options). The first arguments is an object
with the following properties:
- system: CodeCoupler System Object
The parent system instance.
- element: HTMLElement
The current stage.
- \$element: jQuery Object
The current stage as a jQuery object.
The second argument are individual options of your stage implementation which can be defined if the
system.stage() is called to create a stage.
Withing this init function you can manipulate the passed stage however you need. The resulting structure only has to meet two requirements:
- The new stage container element must have set the attribute
- The new stage container element must have the style attribute
If these requirements are not met, the stage will blocked with an error message.
The style attribute
isolation of the new stage container will always be set to