Liking cljdoc? Tell your friends :D

app.components.x-badge.model


attr-aria-describedbycljs


attr-aria-labelcljs


attr-countcljs


attr-dotcljs


attr-maxcljs


attr-pillcljs


attr-sizecljs


attr-textcljs


attr-variantcljs


compute-modecljs

(compute-mode {:keys [has-slot? count text dot]})

Determine badge display mode. :slot — custom slotted content (overrides everything) :count — numeric count display :text — string text display :dot — dot-only (no text) :empty — hidden / no content

Determine badge display mode.
:slot  — custom slotted content (overrides everything)
:count — numeric count display
:text  — string text display
:dot   — dot-only (no text)
:empty — hidden / no content
raw docstring

default-maxcljs


default-sizecljs


default-variantcljs


display-textcljs

(display-text {:keys [count max text] :as m})

Return the string to render in [part=label], or nil.

Return the string to render in [part=label], or nil.
raw docstring

normalizecljs

(normalize {:keys [variant-raw size-raw pill-raw dot-raw count-raw max-raw
                   text-raw aria-label-raw aria-describedby-raw has-slot?]})

observed-attributescljs


parse-bool-attrcljs

(parse-bool-attr s)

parse-int-attrcljs

(parse-int-attr s fallback)

Parse string to non-negative integer, returning fallback on failure.

Parse string to non-negative integer, returning `fallback` on failure.
raw docstring

parse-sizecljs

(parse-size s)

parse-variantcljs

(parse-variant s)

property-apicljs


tag-namecljs

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close