Liking cljdoc? Tell your friends :D

baredom.components.x-kbd.model


attr-keyscljs

source

attr-labelcljs

source

attr-platformcljs

source

attr-separatorcljs

source

attr-sizecljs

source

default-platformcljs

source

default-separatorcljs

source

default-sizecljs

source

derive-aria-labelcljs

(derive-aria-label resolved-tokens label-raw)

Author-supplied label-raw wins verbatim. Otherwise join :aria names with " plus ". Empty when no tokens and no label.

Author-supplied `label-raw` wins verbatim. Otherwise join `:aria` names with
" plus ". Empty when no tokens and no label.
sourceraw docstring

detected-fallbackcljs

source

event-schemacljs

source

method-apicljs

source

normalizecljs

(normalize {:keys [keys-raw separator-raw size-raw platform-raw label-raw]})

Inputs: :keys-raw string | nil :separator-raw string | nil :size-raw string | nil :platform-raw string | nil ("mac"|"win"|"linux"; "auto" is resolved by the caller before reaching this fn) :label-raw string | nil Output: :tokens vector of {:visible :aria} maps (empty in slot mode) :separator string (single char) :size string ("sm"|"md"|"lg") :platform string ("mac"|"win"|"linux") :label string (derived or author-supplied) :slot-mode? boolean (true when no tokens parsed)

Inputs:
  :keys-raw       string | nil
  :separator-raw  string | nil
  :size-raw       string | nil
  :platform-raw   string | nil  ("mac"|"win"|"linux"; "auto" is resolved
                                 by the caller before reaching this fn)
  :label-raw      string | nil
Output:
  :tokens     vector of {:visible :aria} maps (empty in slot mode)
  :separator  string (single char)
  :size       string  ("sm"|"md"|"lg")
  :platform   string  ("mac"|"win"|"linux")
  :label      string  (derived or author-supplied)
  :slot-mode? boolean (true when no tokens parsed)
sourceraw docstring

observed-attributescljs

source

parse-platformcljs

(parse-platform s)
source

parse-separatorcljs

(parse-separator s)

Single non-empty character; otherwise default.

Single non-empty character; otherwise default.
sourceraw docstring

parse-sizecljs

(parse-size s)
source

property-apicljs

source

resolve-platformcljs

(resolve-platform platform-attr detected)

Map (possibly "auto") platform attr value plus a UA-detected fallback to a concrete platform string ("mac"|"win"|"linux").

Map (possibly "auto") platform attr value plus a UA-detected fallback to a
concrete platform string ("mac"|"win"|"linux").
sourceraw docstring

resolve-tokencljs

(resolve-token platform raw-token)

Map a raw input token to {:visible :aria} for the given resolved platform. Unknown tokens pass through (visible = aria = trimmed input).

Map a raw input token to {:visible :aria} for the given resolved platform.
Unknown tokens pass through (visible = aria = trimmed input).
sourceraw docstring

split-keyscljs

(split-keys keys-raw separator)

Split a combo string on separator into trimmed, non-empty tokens.

Split a combo string on `separator` into trimmed, non-empty tokens.
sourceraw docstring

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