This page allows you to test out some event handler ids of your own. Type above or use the examples to test out some matches!
A StateMachine instance is instantiated with the following properties available:
The following grammar is available:
|Any single word that resolves to a namespaced type, state or action|
|Absolute syntax for namespaced types|
|An event type, for action or state events|
|An action name|
|Alternative state name identifier to using an |
|Grouping for multiple patterns, which are expanded to multiple handlers|
The additional options allow yo to choose what to do with invalid states/actions or bad syntax, and are set in the config:
invalid- whether to add handlers for non-existing states or actions (states or actions which might be added later)
errors- whether to quietly ignore, warn or throw errors for invalid handler id syntax
Open the console, click warn or error, and enter some invalid states to see the result.