Fork me on GitHub
#reagent
<
2017-06-30
>
ajs12:06:26

@gadfly361 or anyone, trying to translate something like https://react.semantic-ui.com/modules/sidebar#sidebar-example-left-push using soda-ash, but the "as" prop doesn't appear recognized

ajs12:06:49

like [sa/SidebarPushable {:as (reagent/as-element [sa/Segment])}

ajs12:06:13

ah, it appears it just wants a string, so just :as "Segment" works

fabrao13:06:23

Hello all, anyone worked with cljs-react-material-ui?

ajs13:06:40

@fabrao i've started playing around with it recently

fabrao13:06:17

Have you ever used menu item with icon?

ajs13:06:23

i have not

fabrao13:06:54

well, thanks for your time

gadfly36115:06:34

@ajs glad you got it working. @fabrao can you provide a code snippet of what you're doing?

fabrao15:06:24

(defn ui [titulo]
  [ui/mui-theme-provider
   [:div [ui/app-bar
          {:title titulo
           :onLeftIconButtonTouchTap #(apresentar-menu)
           :iconElementRight (menu-configuracao)
           :style {:background-color (color :blue700)}}
          [ui/drawer
           {:docked false
            :onRequestChange #(apresentar-menu)
            :open @(rf/subscribe [:principal-apresentar-menu])}
           [ui/menu-item {:primaryText "Cadastro" :leftIcon (rg/as-element [ic/action-lock])}]
           ]]]
   ])
@gadfly361

fabrao16:06:10

Do you think is it a bug?

gadfly36116:06:39

@fabrao sorry, havent had a chance to check out your code snippet, will try to later today if no one beats me to it

fabrao16:06:03

lol, ok no problem, the problem seems to icon not positioning ok, best regards