How do I add goog.ui.MenuItem or goog.ui.Option items to goog.ui.Select in clojurescript?

2011-10-10 Thread Eric Harris-Braun
Here's my clojurescript function: (defn make-select [elem-id] (let [select (goog.ui.Select. "Heading") select-elem (d/element (keyword (str "div#" elem-id)))] (.addItemAt select (goog.ui.MenuItem. "Item 1") 0) (.addItem select (goog.ui.Option. "Item 2"))

Re: How do I add goog.ui.MenuItem or goog.ui.Option items to goog.ui.Select in clojurescript?

2011-10-10 Thread Eric Harris-Braun
Well, I figured it out. It was working just fine. The "problem" was that the Options/MenuItems are added elsewhere to the dom. I didn't have the css loading so I just didn't notice that they were at the very bottom of the screen. On Oct 10, 9:25 pm, Eric Harris-Braun wrote: > Here's my clojure