Skip to content

Instantly share code, notes, and snippets.

@EpocSquadron
Last active August 5, 2020 03:41
Show Gist options
  • Save EpocSquadron/4a8e0b020b06e8951d09aacb1cc8a4e3 to your computer and use it in GitHub Desktop.
Save EpocSquadron/4a8e0b020b06e8951d09aacb1cc8a4e3 to your computer and use it in GitHub Desktop.
External Link Alert
External Link Alert
# This references interaction with a link to an external website, be it
# from an external contact form or a doctor's website.
linkClicked -> Displaying
Hidden*
Displaying
# Cancel can result from exiting the modal (by button or escape key),
# clicking the cancel button
cancel -> Hidden
# This represents the user clicking the actual link to be taken to the
# external site. This hides the alert modal the same as hitting cancel,
# but has the obvious side effect.
continue -> Hidden
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