Last active
April 25, 2019 22:59
-
-
Save mrlarner/2d60cffe2392cc1e82d361fe104a4982 to your computer and use it in GitHub Desktop.
Tag Input
This file contains 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
Tag Input | |
Inactive* | |
activate -> Active | |
Active | |
deactivate -> Inactive | |
# Serial editing of tag list | |
Normal mode* | |
adding a tag -> Suggestions? | |
add tag to end of list -> Add tag? | |
remove tag from end of list -> Delete tag? | |
activate Text mode -> Text mode | |
Suggestions? | |
select suggestion -> Add tag? | |
# Text editing of tag list as csv | |
Text mode | |
update all the tags -> Update tags? | |
cancel -> Normal mode | |
Add tag? | |
added tag to list of tags -> Active | |
there was a problem -> Problem? | |
Delete tag? | |
removed tag from list of tags -> Active | |
no tags noop -> Active | |
Update tags? | |
update the tag list -> Active | |
remove all tags -> Active | |
Problem? |
This file contains 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