Skip to content

Instantly share code, notes, and snippets.

@BrianHicks
Last active September 7, 2023 11:45
Show Gist options
  • Save BrianHicks/f5a023eddbf782ae6a3d623002fd58d2 to your computer and use it in GitHub Desktop.
Save BrianHicks/f5a023eddbf782ae6a3d623002fd58d2 to your computer and use it in GitHub Desktop.
Comment
Comment
Absent
highlight -> Empty
Present&
Composing
Empty
type -> Non-Empty
cancel -> Absent
unfocus -> Absent
Non-Empty
type -> Non-Empty
clear -> Empty
cancel -> Absent
save -> Saved
Saved
delete -> Absent
Focus
Focused
unfocus -> Unfocused
Unfocused
focus -> Focused
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