Created
February 14, 2015 18:26
-
-
Save selfsame/19a40c11adce5b5b04b4 to your computer and use it in GitHub Desktop.
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
| (html | |
| (<div> | |
| (class (? mousedown "noselect")) | |
| (render-count :bg "pink") | |
| (om/build style-options data {}) | |
| (<div.tabs> | |
| (mapf [k] | |
| (<div.label> | |
| (class (when= tab k "active")) | |
| (style {:width tabwidth}) | |
| (<p> (format-keyword k) | |
| (onClick (fn [e] (state! :tab k))))) | |
| tabkeys)) | |
| (<div.rules> | |
| (mapf [rule] | |
| (om/build widget rule {:init-state {:tab tab} :react-key (:name rule)}) | |
| (filter #(tabgroup (:name %)) css-rules))))) |
Author
selfsame
commented
Feb 14, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment