Skip to content

Instantly share code, notes, and snippets.

@aceslick911
Last active October 21, 2021 22:59
Show Gist options
  • Save aceslick911/ebdc7c1bebf8b3212ece59cf0d99e88b to your computer and use it in GitHub Desktop.
Save aceslick911/ebdc7c1bebf8b3212ece59cf0d99e88b to your computer and use it in GitHub Desktop.
autocomplete
autocomplete
blur
FOCUS -> focused
focused
BLUR -> blur
MOUSE_CLICK_OUTSIDE -> blur
CHANGE_TEXT -> focused_match
match*
-> list_hidden
-> list.non_empty; matches
-> list.empty; doesNotMatch > performThisAction
list_hidden$
list
empty
non_empty
ARROW_KEY -> non_empty.selected
MOUSE_CLICK_ITEM -> autocomplete.focused
not_selected*
selected
ENTER_KEY -> autocomplete.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