Last active
October 21, 2021 22:59
-
-
Save aceslick911/ebdc7c1bebf8b3212ece59cf0d99e88b to your computer and use it in GitHub Desktop.
autocomplete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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