Skip to content

Instantly share code, notes, and snippets.

@marcsolanadal
Last active September 4, 2018 11:48
Show Gist options
  • Save marcsolanadal/d0b3a833a73b3fa17466c2b188224737 to your computer and use it in GitHub Desktop.
Save marcsolanadal/d0b3a833a73b3fa17466c2b188224737 to your computer and use it in GitHub Desktop.
Search
Search
Focused*
blur -> Not Focused
Empty
typed -> Suggesting
Error
emptied -> Empty
blur -> Searching
typed -> Suggesting
Suggesting
search -> Searching
blur -> Searching
Not Focused
focus -> Focused
Not Selected
Searching
error -> Error
success -> Security Selected
focus -> Searching
Security Selected
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