Last active
June 26, 2018 17:20
-
-
Save sarahbethfederman/2093d921a754b89fb83900e2fa791650 to your computer and use it in GitHub Desktop.
Dropdown*
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
Dropdown* | |
Inactive* | |
focus -> Focused | |
click -> Open | |
Focused | |
down arrow key -> Open | |
Open | |
arrow key -> Navigating | |
click -> Focused | |
Navigating | |
enter key -> Focused | |
Dropdown - Multiple | |
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}`); | |
} | |
function render(model){ | |
return <div style={{textAlign: "center"}}> | |
<h1>{model.active_states[0].name}</h1> | |
</div>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment