Skip to content

Instantly share code, notes, and snippets.

@sarahbethfederman
Last active June 26, 2018 17:20
Show Gist options
  • Save sarahbethfederman/2093d921a754b89fb83900e2fa791650 to your computer and use it in GitHub Desktop.
Save sarahbethfederman/2093d921a754b89fb83900e2fa791650 to your computer and use it in GitHub Desktop.
Dropdown*
Dropdown*
Inactive*
focus -> Focused
click -> Open
Focused
down arrow key -> Open
Open
arrow key -> Navigating
click -> Focused
Navigating
enter key -> Focused
Dropdown - Multiple
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