Skip to content

Instantly share code, notes, and snippets.

@ek
Created January 10, 2020 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ek/3a75f15cb5b09ceae03f1c02ff4ccbd4 to your computer and use it in GitHub Desktop.
Save ek/3a75f15cb5b09ceae03f1c02ff4ccbd4 to your computer and use it in GitHub Desktop.
Entry*
Entry*
Initialize flow -> Step 1
Step Flow
Cancel -> Entry
Step 1*
Next -> Step 2
Step 2
Next -> Step 3
Step 3
Next -> Confirmation
Confirmation
Complete -> Entry
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment