Re: Creating a custom Closure UI component in Clojurescript

2012-07-10 Thread Brian Taylor
I just hit this issue myself and wrote a macro to make it a bit easier to extend google-closure provided classes. Here's the code: (ns move.macros (:require [cljs.compiler :as compiler] [cljs.core :as cljs])) (defmacro goog-extend [type base-type ctor & methods] `(do (defn ~

Re: Creating a custom Closure UI component in Clojurescript

2012-07-01 Thread David Nolen
On Fri, Jun 29, 2012 at 9:08 AM, Danny O' Connor wrote: > Hello, > > I'm trying to build an user interface in Clojurescript using the Google > Closure library. > > It appears that the idiomatic way to use the goog.ui package is to create > subclasses of goog.ui.Component. > > Firstly, is this poss

Creating a custom Closure UI component in Clojurescript

2012-07-01 Thread Danny O' Connor
Hello, I'm trying to build an user interface in Clojurescript using the Google Closure library. It appears that the idiomatic way to use the goog.ui package is to create subclasses of goog.ui.Component. Firstly, is this possible in Clojurescript ? This kind of approach doesn't appear to wo