Liking cljdoc? Tell your friends :D
ClojureScript only.

komponentit.modal


confirm-modalcljs

(confirm-modal {:keys [title content class success failure cancel-label
                       ok-label]
                :or {title "Yes or no?"
                     content "Are you sure?"
                     cancel-label "Cancel"
                     ok-label "OK"}})
  • :title The el for modal header
  • :content The el for modal content
  • :success Function to call if confirmed
  • :failure Function to call if cancelled
  • :ok-label Label for OK button
  • :cancel-label Label for Cancel button
  • :class (Optional) additional classes for .modal-dialog
- :title        The el for modal header
- :content      The el for modal content
- :success      Function to call if confirmed
- :failure      Function to call if cancelled
- :ok-label     Label for OK button
- :cancel-label Label for Cancel button
- :class        (Optional) additional classes for .modal-dialog
sourceraw docstring

(modal {:keys [title content footer on-close class]})
  • :title The el for modal header
  • :content The el for modal body
  • :footer The elements for modal footer
  • :on-close (Optional) callback to be called when modal is closed by clicking outside of the modal
  • :class (Optional) additional classes for .modal-dialog; Examples: modal-sm, modal-lg
- :title      The el for modal header
- :content    The el for modal body
- :footer     The elements for modal footer
- :on-close   (Optional) callback to be called when modal is closed by clicking outside of the modal
- :class      (Optional) additional classes for .modal-dialog; Examples: modal-sm, modal-lg
sourceraw docstring

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

× close