Liking cljdoc? Tell your friends :D

app.components.x-badge.model


attr-aria-describedbycljs

source

attr-aria-labelcljs

source

attr-countcljs

source

attr-dotcljs

source

attr-maxcljs

source

attr-pillcljs

source

attr-sizecljs

source

attr-textcljs

source

attr-variantcljs

source

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
sourceraw docstring

default-maxcljs

source

default-sizecljs

source

default-variantcljs

source

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.
sourceraw 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?]})
source

observed-attributescljs

source

parse-bool-attrcljs

(parse-bool-attr s)
source

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.
sourceraw docstring

parse-sizecljs

(parse-size s)
source

parse-variantcljs

(parse-variant s)
source

property-apicljs

source

tag-namecljs

source

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