Fork me on GitHub
#fulcro
<
2018-01-28
>
afhammad18:01:47

Is there a fulcro template/example with fulcro-sql integrated, would like to see an example of what that stack would look like and play around with it if possible?

macrobartfast20:01:02

how do I add a css class to a fulcro component? I added bootstrap to my html page, and want to, say, put a title in a bootstrap well.

macrobartfast20:01:36

I know it's className in reactland, just not sure where to add it to a component.

macrobartfast20:01:51

it seems like it should be totally simple, but just pulling up results for co-located css, old docs for earlier versions of om, and so on.

macrobartfast20:01:18

trying {:className "well"} on various points in my defsc but nothing is working.

timovanderkamp20:01:27

Are you passing that onto the factory of your components?

timovanderkamp20:01:37

Because you need to put it on dom elements

macrobartfast20:01:44

(defsc Listings [this {:keys [listings/label listings/list]}] (dom/div nil (dom/h5 nil {:className "well"} label) (dom/ul nil (map ui-listing list)))) (def ui-listings (prim/factory Listings))

timovanderkamp20:01:04

Change nil to #js

macrobartfast20:01:53

I had tried that... didn't work, let me double check the output code.

macrobartfast20:01:53

weeeelll then... it did work.

macrobartfast20:01:07

a problem then with my bootstrap include, probably.

macrobartfast20:01:30

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">

macrobartfast20:01:58

at the last point in my header for index.html.

macrobartfast20:01:54

the rendered page isn't showing the well, but it does show the general bootstrap styling.

macrobartfast20:01:59

ok, the container class worked.

macrobartfast20:01:05

so it was something to do with 'well'.

macrobartfast20:01:08

so it's all working.

macrobartfast20:01:15

thank you so much for the help!

djjolicoeur20:01:14

I just started digging into the book from the website. Just ran lein new fulcro app nodemo and I'm noticing a few things like files in different locations, different versions of libs in project.clj, and slight differences in code between the book and what the template created. has anyone gone through the book recently and is it up to date enough to be used as a guide?

macrobartfast23:01:00

I'm getting into projects for which I'd like to have the option of true mobile clients (iOS and Android) down the road. I'm still figuring all this out, but it seems like the whole Fulcro approach might make that tough down the road because of the emphasis on avoiding REST and so on.

macrobartfast23:01:10

It seems if I want to use Fulcro and still have those options, I either have to get it to use REST, or plan on my mobile clients using the backend Fulcro builds out.

macrobartfast23:01:56

If being able to use more than a browser app is a need should I go in a different direction? Or is there some way to make it all work?