Liking cljdoc? Tell your friends :D

baredom.components.x-toc.model


active-indexcljs

(active-index tops line at-bottom?)

The index of the active entry. tops holds the top of each entry from the top of the scroll root, line the activation line. Nil when there are no entries.

The index of the active entry. `tops` holds the top of each entry from the top of the scroll
root, `line` the activation line. Nil when there are no entries.
sourceraw docstring

attr-forcljs

source

attr-idcljs

source

attr-labelcljs

source

attr-offsetcljs

source

attr-selectorcljs

source

attr-stickycljs

source

attr-tabindexcljs

source

attr-update-hashcljs

source

change-detailcljs

(change-detail {:keys [id text level index]} previous-id)

The detail of x-toc-change for a move from the entry previous-id to entry.

The detail of `x-toc-change` for a move from the entry `previous-id` to `entry`.
sourceraw docstring

clean-textcljs

(clean-text s)

The text s trimmed, with each run of whitespace made one space.

The text `s` trimmed, with each run of whitespace made one space.
sourceraw docstring

default-labelcljs

source

default-offsetcljs

source

default-selectorcljs

source

entriescljs

(entries identified)

The entries {:id :text :level :index} of the identified headings. A heading whose id an earlier one has is left out.

The entries `{:id :text :level :index}` of the `identified` headings. A heading whose id an
earlier one has is left out.
sourceraw docstring

event-changecljs

source

event-navigatecljs

source

event-schemacljs

source

fallback-slugcljs

source

foreign-writescljs

The attributes x-toc writes on the entries of its container.

The attributes x-toc writes on the entries of its container.
sourceraw docstring

heading-levelcljs

(heading-level tag-name-text)

The level of the tag tag-name-text: 1 to 6 for H1 to H6, else nil.

The level of the tag `tag-name-text`: 1 to 6 for `H1` to `H6`, else nil.
sourceraw docstring

id-writescljs

(id-writes identified)

The [at id] pairs of the identified headings that need their id written.

The `[at id]` pairs of the `identified` headings that need their id written.
sourceraw docstring

identifycljs

(identify headings taken)

The headings with text, each with its id, its place :at in headings, and :new-id?. A heading is {:id :text :tag}, and taken holds the ids already in the root.

The `headings` with text, each with its id, its place `:at` in `headings`, and `:new-id?`.
A heading is `{:id :text :tag}`, and `taken` holds the ids already in the root.
sourceraw docstring

method-apicljs

source

(navigate-detail {:keys [id text level index]})

The detail of x-toc-navigate for entry.

The detail of `x-toc-navigate` for `entry`.
sourceraw docstring

next-pincljs

(next-pin pin [kind id])

The pin after event: [:click id], [:scroll] or [:settle]. A pin holds the clicked entry until its scroll settles and the reader scrolls again.

The pin after `event`: `[:click id]`, `[:scroll]` or `[:settle]`. A pin holds the clicked
entry until its scroll settles and the reader scrolls again.
sourceraw docstring

normalizecljs

(normalize {:keys [for-raw selector-raw label-raw offset-raw update-hash?]})

The view model {:for :selector :label :labelled? :offset :update-hash?} from the raw attributes, without its entries.

The view model `{:for :selector :label :labelled? :offset :update-hash?}` from the raw
attributes, without its entries.
sourceraw docstring

observed-attributescljs

source

offset-pxcljs

(offset-px {:keys [unit value]} height)

The distance in px of the activation line from the top of a scroll root height px tall.

The distance in px of the activation line from the top of a scroll root `height` px tall.
sourceraw docstring

parse-offsetcljs

(parse-offset s)

The offset {:unit :px|:percent :value n} that s states, or the default 25%.

The offset `{:unit :px|:percent :value n}` that `s` states, or the default 25%.
sourceraw docstring

parse-selectorcljs

(parse-selector s)

The selector s, or the default for a blank one.

The selector `s`, or the default for a blank one.
sourceraw docstring

property-apicljs

source

slugcljs

(slug s)

An id made from the text s: lower case, letters and digits joined by -.

An id made from the text `s`: lower case, letters and digits joined by `-`.
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