Skip to content

Instantly share code, notes, and snippets.

@rippinrobr
Created June 14, 2018 14:34
Show Gist options
  • Save rippinrobr/d45716b71b019d648585e2cd311e4e8d to your computer and use it in GitHub Desktop.
Save rippinrobr/d45716b71b019d648585e2cd311e4e8d to your computer and use it in GitHub Desktop.
the viewTag function, creates a clickable div for the navigation menu
viewTag selectedTag tag =
div
[ classList [ ("tag",True), ( "selected", selectedTag == tag ) ]
, onClick { operation = "SELECT_TAG", data = tag }
]
[text tag]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment