Liking cljdoc? Tell your friends :D

trident.views.re-com

cljs

Drop-in replacement for re-com.core with a few changes.

Drop-in replacement for `re-com.core` with a few changes.
raw docstring

alert-boxcljs

source

alert-listcljs

source

align-stylecljs

source

bordercljs

source

boxcljs

source

buttoncljs

source

casecljs

(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

checkboxcljs

source

close-buttoncljs

source

datepickercljs

source

datepicker-dropdowncljs

source

flex-child-stylecljs

source

flex-flow-stylecljs

source

forclj/smacro

(for bindings body)

Like for, but avoids React's complaints about unique keys.

Like `for`, but avoids React's complaints about unique keys.
sourceraw docstring

gapcljs

(gap & {:as props})

Like re-com.core/gap, but with a default :size of 10px.

Like `re-com.core/gap`, but with a default `:size` of `10px`.
sourceraw docstring

growcljs

(grow)

A div with :flex-grow 1.

A div with `:flex-grow 1`.
sourceraw docstring

h-boxcljs

See v-box

See [[v-box]]
sourceraw docstring

h-splitcljs

source

horizontal-bar-tabscljs

source

horizontal-pill-tabscljs

source

horizontal-tabscljs

(horizontal-tabs & {:keys [model] :as props})

Like re-com.core/horizontal-tabs, but stores :on-change results in model.

Like `re-com.core/horizontal-tabs`, but stores `:on-change` results in `model`.
sourceraw docstring

source

source

info-buttoncljs

source

input-passwordcljs

source

input-textcljs

(input-text & {:keys [model transform] :or {transform identity} :as props})

Like re-com.core/input-text, but stores :on-change results in model.

  • model: an atom
  • transform: a function that will wrap :on-change values before they're stored in model.
Like `re-com.core/input-text`, but stores `:on-change` results in `model`.

- `model`: an atom
- `transform`: a function that will wrap `:on-change` values before they're
  stored in `model`.
sourceraw docstring

input-textareacljs

source

input-timecljs

source

justify-stylecljs

source

labelcljs

source

linecljs

source

make-tourcljs

source

make-tour-navcljs

source

md-circle-icon-buttoncljs

source

md-icon-buttoncljs

source

source

pcljs

source

p-spancljs

source

popover-anchor-wrappercljs

source

popover-bordercljs

source

popover-content-wrappercljs

source

popover-tooltipcljs

source

progress-barcljs

source

radio-buttoncljs

source

row-buttoncljs

source

scroll-stylecljs

source

scrollercljs

source

selection-listcljs

source

single-dropdowncljs

source

slidercljs

source

start-tourcljs

source

throbbercljs

source

titlecljs

source

typeaheadcljs

source

v-boxcljs

Like re-com.core/v-box but without map destructuring.

Example:

[v-box {:style {:width "200px"}}
  [child-component-1]
  [child-component-2]]
Like `re-com.core/v-box` but without map destructuring.

Example:
```
[v-box {:style {:width "200px"}}
  [child-component-1]
  [child-component-2]]
```
sourceraw docstring

v-splitcljs

source

vertical-bar-tabscljs

source

vertical-pill-tabscljs

source

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

× close