Fork me on GitHub
#re-frame
<
2019-12-05
>
sandbags17:12:51

Is there an easy option to get the re-com demo (https://re-com.day8.com.au/) locally? It doesn't appear to be part of the re-com repo SFAICS. Am I missing something?

p-himik17:12:07

Although, it's just code - no instructions on how to run it...

sandbags17:12:36

thanks Eugene

sandbags17:12:50

that is a little awkward

p-himik17:12:04

Actually, from the README it seems like you could just run lein dev-auto. But it doesn't work for me - the attempt to load the compiled JS file results in 404.

sandbags17:12:50

i'm thinking i might just try using wget to mirror it

p-himik17:12:55

Ah, I was probably trying to access it before it became available. It works!

sandbags17:12:02

oh, okay cool

p-himik17:12:46

lein dev-once didn't work because it just loaded the HTML file from the filesystem, and browsers generally don't run JS then.

sandbags17:12:26

doh! I was looking in dev-src no wonder i couldn't find it!

sandbags17:12:20

okay i have it locally here too, thanks @U2FRKM4TW

👍 4
superstructor00:12:58

Apologies for any inconvenience @U06BDH95J and thanks for highlighting this gap in the docs. I'll update the README.

sandbags01:12:08

@U0G75S29H absolutely no apologies necessary

sandbags17:12:31

Okay so what I really wanted to know was whether there was a way to have disabled choices in a [single-dropdown] I want the user to know the option is potentially available, but not to be able to select it. Looking at the docs and now the source I don't see any such functionality.

p-himik17:12:25

I think you could use a custom :render-fn component that just calls (.preventDefault event) if a users clicks on the disabled item.

sandbags17:12:42

Yes I was just musing on that but you beat me to it 🙂