Fork me on GitHub
#re-frame
<
2018-01-08
>
mchampine06:01:30

Newb question about a re-com component: re-com/input-text doesn’t appear to let you change the input-type between :password and :input in response to a checkbox status. The idea would be to enable a “show password” checkbox. Is there a workaround for this? i.e. this doesn’t change the input-type

[re-com/input-text
 :model ""
 :input-type (if @ticked? :input :password)
 :on-change #()
 :placeholder "Password"]
[re-com/checkbox
 :model ticked?
 :on-change #(reset! ticked? %)
 :label "show password"]
Thanks for any ideas!

lilactown22:01:21

I’m interested in using re-frame, but I want to use rum for it’s fast server-side rendering

lilactown22:01:54

is there any support from re-frame for this use case? or a more agnostic state management library ya’ll would suggest?