Liking cljdoc? Tell your friends :D

baredom.components.x-typography.model


attr-aligncljs

source

attr-line-clampcljs

source

attr-truncatecljs

source

attr-variantcljs

source

event-schemacljs

source

normalizecljs

(normalize {:keys [variant-raw align-raw truncate-raw line-clamp-raw]})

Normalise raw attribute inputs into a stable view-model map.

Input keys: :variant-raw string | nil :align-raw string | nil :truncate-raw string | nil (nil = absent, any string = present) :line-clamp-raw string | nil

Output keys: :variant string :align string :truncate? boolean :line-clamp int | nil

Normalise raw attribute inputs into a stable view-model map.

Input keys:
  :variant-raw     string | nil
  :align-raw       string | nil
  :truncate-raw    string | nil  (nil = absent, any string = present)
  :line-clamp-raw  string | nil

Output keys:
  :variant     string
  :align       string
  :truncate?   boolean
  :line-clamp  int | nil
sourceraw docstring

observed-attributescljs

source

parse-aligncljs

(parse-align s)

Normalise a raw align attribute string. Unknown / nil values fall back to "left".

Normalise a raw align attribute string.
Unknown / nil values fall back to "left".
sourceraw docstring

parse-line-clampcljs

(parse-line-clamp s)

Parse line-clamp attribute to a positive integer, or nil if absent/invalid.

Parse line-clamp attribute to a positive integer, or nil if absent/invalid.
sourceraw docstring

parse-truncatecljs

(parse-truncate s)

Parse a boolean presence attribute. Present (any value) = true, absent (nil) = false.

Parse a boolean presence attribute. Present (any value) = true, absent (nil) = false.
sourceraw docstring

parse-variantcljs

(parse-variant s)

Normalise a raw variant attribute string. Unknown / nil values fall back to "body1".

Normalise a raw variant attribute string.
Unknown / nil values fall back to "body1".
sourceraw docstring

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