Skip to content

Instantly share code, notes, and snippets.

@swissmanu
Last active November 15, 2019 07:48
Show Gist options
  • Save swissmanu/a5ee9045ba70aa108dbd13b80b64a1d6 to your computer and use it in GitHub Desktop.
Save swissmanu/a5ee9045ba70aa108dbd13b80b64a1d6 to your computer and use it in GitHub Desktop.
Editable Page
Editable Page
Error
Reset -> View
View*
Read
Change Data -> WaitForEdit
Request Edit -> WaitForEdit
WaitForEdit
Ready -> Edit
Error -> Error
Edit
Cancel -> WaitForView
Prestine
Change Data -> Dirty
Dirty
Change Data -> Dirty
Submit -> WaitForView
WaitForView
Finished -> View
Error -> Error
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