Interaction with javascript #
The wires can be hooked and triggered from the script part of your component. This also comes very handy when you are writing tests.
Trigger a wire imperatively #
To trigger a wire from the javascript part of your component, call the _FBPTriggerWire method.
You can also trigger the wire in the constructor, in this case the wire will be queued until the flow is parsed and ready.
|
|
Add a wire hook #
To hook on a wire use this._FBPAddWireHook("--wirename")
. This comes very handy at testing, or if you have to manipulate some
data, because the component doesnt send it like an other component needs it.
|
|
The most at-events of the furo base components will fit the fn-methods of the corresponding components. It is like playing domino.