Liking cljdoc? Tell your friends :D

app.components.x-timeline-item.model


attr-connectorcljs


attr-disabledcljs


attr-iconcljs


attr-labelcljs


attr-positioncljs


attr-statuscljs


attr-titlecljs


click-detailcljs

(click-detail {:keys [status label]})

Build the event detail map for an x-timeline-item-click event.

Build the event detail map for an x-timeline-item-click event.
raw docstring

connected-detailcljs

(connected-detail {:keys [status label effective-position disabled?]})

Build the event detail map for an x-timeline-item-connected event.

Build the event detail map for an x-timeline-item-connected event.
raw docstring

data-attr-indexcljs


data-attr-lastcljs


data-attr-positioncljs


data-attr-stripedcljs


disconnected-detailcljs

(disconnected-detail {:keys [status label]})

Build the event detail map for an x-timeline-item-disconnected event.

Build the event detail map for an x-timeline-item-disconnected event.
raw docstring

effective-positioncljs

(effective-position data-pos-raw pos-raw)

Returns the effective position keyword for rendering. Reads data-position first (parent override, accepts only start/end). Falls back to position attribute. Defaults to :start.

Returns the effective position keyword for rendering.
Reads data-position first (parent override, accepts only start/end).
Falls back to position attribute. Defaults to :start.
raw docstring

event-clickcljs


event-connectedcljs


event-disconnectedcljs


event-schemacljs


icon-for-statuscljs

(icon-for-status k)

Return the default icon glyph for a status keyword.

Return the default icon glyph for a status keyword.
raw docstring

interactive-eligible?cljs

(interactive-eligible? {:keys [disabled?]})

Return true when the item can receive click/keyboard interactions.

Return true when the item can receive click/keyboard interactions.
raw docstring

marker-aria-labelcljs

(marker-aria-label status label data-index)

Build the ARIA label string for the marker element.

Build the ARIA label string for the marker element.
raw docstring

normalizecljs

(normalize {:keys [label-raw title-raw status-raw icon-present? icon-raw
                   connector-raw position-raw disabled? data-last?
                   data-index-raw data-position-raw data-striped?]})

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

Input keys: :label-raw string | nil :title-raw string | nil :status-raw string | nil :icon-present? boolean :icon-raw string | nil :connector-raw string | nil :position-raw string | nil :disabled? boolean :data-last? boolean :data-index-raw string | nil :data-position-raw string | nil :data-striped? boolean

Output keys: :label string :title string :status keyword — :pending | :active | :complete | :error | :warning :icon-mode keyword — :default | :custom | :hidden :icon string | nil :connector keyword — :solid | :dashed | :none :effective-position keyword — :start | :end :disabled? boolean :data-last? boolean :data-index int | nil :data-striped? boolean :marker-icon string | nil :marker-aria string

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

Input keys:
  :label-raw        string | nil
  :title-raw        string | nil
  :status-raw       string | nil
  :icon-present?    boolean
  :icon-raw         string | nil
  :connector-raw    string | nil
  :position-raw     string | nil
  :disabled?        boolean
  :data-last?       boolean
  :data-index-raw   string | nil
  :data-position-raw string | nil
  :data-striped?    boolean

Output keys:
  :label             string
  :title             string
  :status            keyword  — :pending | :active | :complete | :error | :warning
  :icon-mode         keyword  — :default | :custom | :hidden
  :icon              string | nil
  :connector         keyword  — :solid | :dashed | :none
  :effective-position keyword — :start | :end
  :disabled?         boolean
  :data-last?        boolean
  :data-index        int | nil
  :data-striped?     boolean
  :marker-icon       string | nil
  :marker-aria       string
raw docstring

normalize-iconcljs

(normalize-icon s)

Normalise icon attribute: absent/nil/empty/"none" become nil.

Normalise icon attribute: absent/nil/empty/"none" become nil.
raw docstring

observed-attributescljs


parse-connectorcljs

(parse-connector s)

Normalise a raw connector attribute string. Defaults to :solid.

Normalise a raw connector attribute string. Defaults to :solid.
raw docstring

parse-data-indexcljs

(parse-data-index s)

Parse data-index attribute to a non-negative integer, or nil if absent/invalid.

Parse data-index attribute to a non-negative integer, or nil if absent/invalid.
raw docstring

parse-positioncljs

(parse-position s)

Normalise a raw position attribute string to :start or :end. Defaults to :start.

Normalise a raw position attribute string to :start or :end. Defaults to :start.
raw docstring

parse-statuscljs

(parse-status s)

Normalise a raw status attribute string to a keyword. Defaults to :pending.

Normalise a raw status attribute string to a keyword. Defaults to :pending.
raw docstring

property-apicljs


status->attrcljs

(status->attr k)

Convert an internal status keyword back to its attribute string.

Convert an internal status keyword back to its attribute string.
raw docstring

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