(backdrop & {:keys [opacity on-click class style attr] :as args})
Renders a backdrop div which fills the entire page and responds to clicks on it. Can also specify how tranparent it should be
Renders a backdrop div which fills the entire page and responds to clicks on it. Can also specify how tranparent it should be
(calc-element-midpoint node)
Given a node reference, calculate the absolute x and y coordinates of the node's midpoint
Given a node reference, calculate the absolute x and y coordinates of the node's midpoint
(calc-pop-offset arrow-pos position-offset p-width p-height)
(calculate-optimal-position [x y])
Calculate the optimal :position value that results in the least amount of clipping by the screen edges Taken from: https://github.com/Lambda-X/cljs-repl-web/blob/0.3.1/src/cljs/cljs_repl_web/views/utils.cljs#L52 Thanks to @richiardiandrea and @tomek for this code
Calculate the optimal :position value that results in the least amount of clipping by the screen edges Taken from: https://github.com/Lambda-X/cljs-repl-web/blob/0.3.1/src/cljs/cljs_repl_web/views/utils.cljs#L52 Thanks to @richiardiandrea and @tomek for this code
(next-even-integer num)
(point x y)
(popover-anchor-wrapper & {:keys [showing? position src] :as args})
Renders an element or control along with a Bootstrap popover
Renders an element or control along with a Bootstrap popover
(popover-arrow &
{:keys [orientation pop-offset arrow-length arrow-width
grey-arrow? no-border? popover-color popover-border-color
parts]})
Render the triangle which connects the popover to the anchor (using SVG)
Render the triangle which connects the popover to the anchor (using SVG)
(popover-border & {:keys [position position-offset title src] :as args})
Renders an element or control along with a Bootstrap popover
Renders an element or control along with a Bootstrap popover
(popover-clipping node)
(popover-content-wrapper & {:keys [no-clip?] :as args})
Abstracts several components to handle the 90% of cases for general popovers and dialog boxes
Abstracts several components to handle the 90% of cases for general popovers and dialog boxes
(popover-tooltip &
{:keys [label showing? on-cancel close-button? status anchor
position no-clip? width class style attr parts src
debug-as]
:or {no-clip? true}
:as args})
Renders text as a tooltip in Bootstrap popover style
Renders text as a tooltip in Bootstrap popover style
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close