Skip to content

Instantly share code, notes, and snippets.

@edgerunner
Last active April 24, 2019 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edgerunner/2e0081a9f922760e7eb745ae90973809 to your computer and use it in GitHub Desktop.
Save edgerunner/2e0081a9f922760e7eb745ae90973809 to your computer and use it in GitHub Desktop.
SmartNote
SmartNote
UNFOCUS -> blurred
FOCUS 1 -> SmartField 1
FOCUS 2 -> SmartField 2
FOCUS 3 -> SmartField 3
blurred
FOCUS -> focused
focused
SmartField 1
SELECT -> SmartField 2
NEXT -> SmartField 2
PREV -> SmartField 3
SmartField 2
SELECT -> SmartField 3
NEXT -> SmartField 3
PREV -> SmartField 1
SmartField 3
SELECT -> blurred
NEXT -> SmartField 1
PREV -> SmartField 2
function render(model){
let states = model.active_states.map(s => `${s.parent.name} ${s.name}`);
return states.map(s => <h1>{s}</h1>);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment