(item-position position index)Return the data-position string to assign to a child item. position — the coordinator's resolved position string index — the child's 0-based index
:start → always "start" :end → always "end" :alternating → even index → "start", odd index → "end"
Return the data-position string to assign to a child item. position — the coordinator's resolved position string index — the child's 0-based index :start → always "start" :end → always "end" :alternating → even index → "start", odd index → "end"
(normalize {:keys [label-raw position-raw striped?]})Normalise raw attribute inputs into a stable view-model map.
Input keys: :label-raw string | nil :position-raw string | nil :striped? boolean
Output keys: :label string :position string — "start" | "end" | "alternating" :striped? boolean
Normalise raw attribute inputs into a stable view-model map. Input keys: :label-raw string | nil :position-raw string | nil :striped? boolean Output keys: :label string :position string — "start" | "end" | "alternating" :striped? boolean
(parse-position s)Normalise a raw position attribute string to "start", "end", or "alternating". Unknown/nil values fall back to "start".
Normalise a raw position attribute string to "start", "end", or "alternating". Unknown/nil values fall back to "start".
(select-detail index status label)Build the event detail map for an x-timeline-select event.
Build the event detail map for an x-timeline-select event.
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 |