(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
(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
(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-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-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 popover-color warning-color error-color
info-color success-color]
:or {no-clip? true
popover-color "black"
warning-color "#f57c00"
error-color "#d50000"
info-color "#333333"
success-color "#13C200"}
: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