(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.
(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.
(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.
(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.
(icon-for-status k)Return the default icon glyph for a status keyword.
Return the default icon glyph for a status keyword.
(interactive-eligible? {:keys [disabled?]})Return true when the item can receive click/keyboard interactions.
Return true when the item can receive click/keyboard interactions.
(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.
(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
(normalize-icon s)Normalise icon attribute: absent/nil/empty/"none" become nil.
Normalise icon attribute: absent/nil/empty/"none" become nil.
(parse-connector s)Normalise a raw connector attribute string. Defaults to :solid.
Normalise a raw connector attribute string. Defaults to :solid.
(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.
(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.
(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.
(status->attr k)Convert an internal status keyword back to its attribute string.
Convert an internal status keyword back to its attribute string.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |