Skip to content

Instantly share code, notes, and snippets.

@lintaonz
Created October 23, 2018 01:58
Show Gist options
  • Select an option

  • Save lintaonz/abc95b15e4e84d3c306d40615c86ed7e to your computer and use it in GitHub Desktop.

Select an option

Save lintaonz/abc95b15e4e84d3c306d40615c86ed7e to your computer and use it in GitHub Desktop.
Sidebar Menu
Sidebar Menu
Init*
item1 -> Dashboard
item2 -> Agreements
item3 -> Discovery
item4 -> Desktop
item5 -> Windows Server
item6 -> Server Applications
item7 -> Submit
item8 -> Summary
Dashboard
stage1-3 -> ItemDisable
stage4 -> ItemShow
Agreements
stage1 -> ItemDisable
stage2-4 -> ItemShow
Discovery
stage1-4 -> ItemShow
Desktop
stage1-4 -> ItemShow
Windows Server
stage1-4 -> ItemShow
Server Applications
stage1-4 -> ItemShow
Submit
stage1 -> ItemShow
stage2-4 -> ItemHide
Summary
stage1 -> ItemDisable
stage2-4 -> ItemShow
ItemShow
ItemHide
ItemDisable
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