Liking cljdoc? Tell your friends :D

trident.views

Utilities for working with frontend views.

Utilities for working with frontend views.
raw docstring

caseclj/s

(case x & clauses)

Similar to clojure.core/case, but wraps the values in divs.

Values that aren't displayed will still be returned, but they'll be wrapped in a div with :display "none" for performance.

Example:

(def tab (reagent.core/ratom ::tab-1))
(case @tab
  ::tab-1 [:p "tab 1"]
  ::tab-2 [:p "tab 2"])
=> [:div
     (^{:key ::tab-1} [:div [:p "tab 1"]]
      ^{:key ::tab-2} [:div {:style {:display "none"}}
                            [:p "tab 2"]])]
Similar to `clojure.core/case`, but wraps the values in divs.

Values that aren't displayed will still be returned, but they'll be wrapped
in a div with `:display "none"` for performance.

Example:
```
(def tab (reagent.core/ratom ::tab-1))
(case @tab
  ::tab-1 [:p "tab 1"]
  ::tab-2 [:p "tab 2"])
=> [:div
     (^{:key ::tab-1} [:div [:p "tab 1"]]
      ^{:key ::tab-2} [:div {:style {:display "none"}}
                            [:p "tab 2"]])]
```
sourceraw docstring

gapclj/s

(gap)
(gap size)

Returns a 10px (by default) div.

Returns a 10px (by default) div.
sourceraw docstring

h-boxclj/s≠

clj
(h-box & args__5096__auto__)
cljs
(h-box & args__10726__auto__)
source

v-boxclj/s≠

clj
(v-box & args__5096__auto__)
cljs
(v-box & args__10726__auto__)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close