Last active
June 11, 2018 18:31
-
-
Save toddmoy/f1ccea523a0f8b624f0eee37bdec21bd to your computer and use it in GitHub Desktop.
Flexible Metric Card
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
| Flexible Metric Card | |
| Closed | |
| clickCard -> Show Chart | |
| mouseOver -> Show Ellipsis | |
| requestingData -> Loading | |
| noData -> Awaiting Data | |
| scriptNotInstalled -> Install Script | |
| Show Chart | |
| clickCard -> Closed | |
| Show Ellipsis | |
| clickEllipsis -> Show Options | |
| mouseOut -> Closed | |
| Show Options | |
| clickOutside -> Closed | |
| clickMoveLeft -> Closed | |
| clickMoveRight -> Closed | |
| clickDelete -> No Metric Chosen | |
| Awaiting Data | |
| hasData -> Closed | |
| No Metric Chosen | |
| choosesMetric -> Closed | |
| Install Script | |
| scriptInstalled -> Closed | |
| Loading | |
| dataLoaded -> Closed | |
| dataDidntLoad -> Failed to Load | |
| Failed to Load | |
| retrySuccessful -> Closed | |
| retryFailed -> Failed to Load | |
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