Skip to content

Instantly share code, notes, and snippets.

@toddmoy
Last active June 11, 2018 18:31
Show Gist options
  • Save toddmoy/f1ccea523a0f8b624f0eee37bdec21bd to your computer and use it in GitHub Desktop.
Save toddmoy/f1ccea523a0f8b624f0eee37bdec21bd to your computer and use it in GitHub Desktop.
Flexible Metric Card
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
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