Liking cljdoc? Tell your friends :D

untangled.ui.dialogs

A collection of pre-written common dialogs

A collection of pre-written common dialogs
raw docstring

default-no-labelcljs


default-yes-labelcljs


dialog-identcljs

(dialog-ident props)

make-confirmation-dialogcljs

(make-confirmation-dialog id
                          modal?
                          message
                          &
                          {:keys [title yes-label no-label]
                           :or {yes-label "Yes" no-label "No"}})

If using i18n, be sure to pass these labels through tr. This is a bit counterintuitive, but to get it right, use a pattern like this:

(def do-it-string (do (tr "Do it???") "Do it???"))
(make-confirmation-dialog
   :title do-it-string ...)
If using i18n, be sure to pass these labels through `tr`. This is a bit
counterintuitive, but to get it right, use a pattern like this:

```
(def do-it-string (do (tr "Do it???") "Do it???"))
(make-confirmation-dialog
   :title do-it-string ...)
```

raw docstring

ui-confirmation-dialogcljs

(ui-confirmation-dialog props & {:keys [onDone]})

Render a confirmation dialog. The various labels are supplied to this function so you can internationalize them.

Note: Initialize dialogs in your app state with make-confirmation-dialog, which is also where you decide if it is a modal dialog.

Parameters:

props The Om props for the component onDone Function to be called (with true/false) when the user chooses.

The dialog automatically closes when a choice is made.

Render a confirmation dialog. The various labels are supplied to this
function so you can internationalize them.

Note: Initialize dialogs in your app state with `make-confirmation-dialog`,
which is also where you decide if it is a modal dialog.

Parameters:

`props` The Om props for the component
`onDone` Function to be called (with true/false) when the user chooses.

The dialog automatically closes when a choice is made.
raw docstring

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

× close