Skip to content

Instantly share code, notes, and snippets.

@paulsonnentag
Created February 5, 2020 14:51
Show Gist options
  • Save paulsonnentag/a19b9668f9059385e3cd83177f739952 to your computer and use it in GitHub Desktop.
Save paulsonnentag/a19b9668f9059385e3cd83177f739952 to your computer and use it in GitHub Desktop.
App
App
Todo&
Completion
Pending
toggle -> Done
Done
toggle -> Pending
Mode
Reading
edit -> Editing
Editing
cancel -> Reading
confirm -> Reading
Todos
select no filter -> NoFilter
select done filter -> DoneFilter
select pending filter -> PendingFilter
NoFilter
DoneFilter
PendingFilter
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