Created
June 14, 2018 14:34
-
-
Save rippinrobr/d45716b71b019d648585e2cd311e4e8d to your computer and use it in GitHub Desktop.
the viewTag function, creates a clickable div for the navigation menu
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
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