Fork me on GitHub
#hoplon
<
2016-11-25
>
laforge4917:11:12

Trying to make the :style height based on a cell. Do I put the whole style string in a cell and then just do a ":style mycell"?

flyboarder17:11:29

@laforge49: Can you give me an example of that?

laforge4917:11:58

This is what I've tried:

laforge4917:11:00

(h/table :style (table-style @login/body-height)

laforge4917:11:11

with and without the @.

laforge4917:11:33

but it is not responding to changes to the body-height cell.

flyboarder17:11:40

You'll need that in a formula

laforge4917:11:18

:style (cell= xxx) ?

laforge4917:11:06

so then I just put the entire style string in the formula cell.

laforge4918:11:44

Thanks @flyboarder it works great.

mynomoto18:11:10

@laforge49 there is also :css (cell= {:margin-top "0px"})

flyboarder18:11:35

@laforge49: you can toggle the CSS style by replacing the value with another cell in @mynomoto example

laforge4918:11:14

:css looks handy. Thanks! I had seen it but didn't notice the difference before. 🙂