Skip to content

Instantly share code, notes, and snippets.

@ray-delossantos
Created June 4, 2018 03:57
Show Gist options
  • Save ray-delossantos/091071a6d3ed5f5d0e7b5bd4a3b9de7f to your computer and use it in GitHub Desktop.
Save ray-delossantos/091071a6d3ed5f5d0e7b5bd4a3b9de7f to your computer and use it in GitHub Desktop.
store Application {
property page : String = ""
property pages : Array(Ui.Pager.Item) = {
[
{
name = "home",
contents = <Home/>,
url = "/home",
icon = "fa-home",
arrangement = 10
},
{
name = "test",
contents = <Test/>,
url = "/test",
icon = "fa-asterisk",
arrangement = 30
},
{
name = "not_found",
contents =
<div>
<{ "404" }>
</div>
}
]
}
fun setPage (a : String) : Void {
do {
Http.abortAll()
next { state | page = a }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment