Skip to content

Instantly share code, notes, and snippets.

@d4hines
Last active January 22, 2019 20:23
Show Gist options
  • Save d4hines/063ecf3f32dc6ddeb0d940ccc0664205 to your computer and use it in GitHub Desktop.
Save d4hines/063ecf3f32dc6ddeb0d940ccc0664205 to your computer and use it in GitHub Desktop.
Focus
Focus
Unfocused
focus -> Focused
Focused*
unfocus -> Unfocused
Tabs
Tab1 Selected*
click tab 2 -> Tab1 Selected
click tab 1 -> Tab1 Selected
Tab2 Selected
click tab 2 -> Tab1 Selected
click tab 1 -> Tab1 Selected
# Etc for all tabs
Window State
Maximized
maximize -> Unmaximized
minimize -> Minimized
Unmaximized
maximize -> Maximized
Minimized
minimize -> Minimized
Unminimize
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