Created
May 24, 2012 19:59
-
-
Save swannodette/2783861 to your computer and use it in GitHub Desktop.
ex.cljs
This file contains 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
(defn sample-component [opt-label opt-dom-helper] | |
(this-as self | |
(goog.ui.Component self opt-dom-helper) | |
(set! (.-initialLabel_ self) (or opt-label "Click Me")) | |
(set! (.-color_ self) "red") | |
(set! (.-eh_ self) (goog.events.EventHandler. self)) | |
(set! (.-kh_ self) nil)) | |
(goog.inherits sample-component goog.ui.Component) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment