Liking cljdoc? Tell your friends :D

baredom.components.x-tree.model

The pure model of x-tree.

The pure model of x-tree.
raw docstring

activationcljs

The op that activating a branch or a leaf gives, by selection mode.

The op that activating a branch or a leaf gives, by selection mode.
sourceraw docstring

allowed-selectionscljs

source

array-ofcljs

(array-of v)

The JS array v, or the one that the JSON text v holds. Nil for anything else.

The JS array `v`, or the one that the JSON text `v` holds. Nil for anything else.
sourceraw docstring

attr-expandedcljs

source

attr-guidescljs

source

attr-itemscljs

source

attr-labelcljs

source

attr-loading-textcljs

source

attr-selectedcljs

source

attr-selectioncljs

source

branch?cljs

(branch? m id)

True when the item id of m has children or is lazy.

True when the item `id` of `m` has children or is lazy.
sourceraw docstring

click->actioncljs

(click->action m id part)

The action of a click on the part (:row or :chevron) of the item id, or nil.

The action of a click on the `part` (`:row` or `:chevron`) of the item `id`, or nil.
sourceraw docstring

countedcljs

(counted m {:keys [selection expanded selected]})

The ids of expanded and selected that m counts under selection, as sets, and in :unknown the ids of each that name no item.

The ids of `expanded` and `selected` that `m` counts under `selection`, as sets, and in
`:unknown` the ids of each that name no item.
sourceraw docstring

default-loading-textcljs

source

end-item?cljs

(end-item? m id)

True when the item id of m has no children.

True when the item `id` of `m` has no children.
sourceraw docstring

event-changecljs

source

event-lazy-loadcljs

source

event-schemacljs

source

event-selectcljs

source

event-togglecljs

source

eventscljs

(events m action m')

The events that action sends, from m to m', in order, as [name detail] pairs.

The events that `action` sends, from `m` to `m'`, in order, as `[name detail]` pairs.
sourceraw docstring

indexcljs

(index items)

The items of items keyed by id: :item, :children (nil for the top level), :parent, :position among its siblings, and :order, in tree order. An item with no id or label, or with the id of an earlier item, is left out with its children and listed in :dropped.

The items of `items` keyed by id: `:item`, `:children` (nil for the top level), `:parent`,
`:position` among its siblings, and `:order`, in tree order. An item with no id or label, or
with the id of an earlier item, is left out with its children and listed in `:dropped`.
sourceraw docstring

key->actioncljs

(key->action m key)

The action of the key key on the focused item of m, or nil when it does nothing.

The action of the key `key` on the focused item of `m`, or nil when it does nothing.
sourceraw docstring

keymapcljs

The step of each key, by the kind of the focused item: :open, :closed, :leaf or :any.

The step of each key, by the kind of the focused item: `:open`, `:closed`, `:leaf` or `:any`.
sourceraw docstring

method-apicljs

source

normalizecljs

(normalize raw)
(normalize {:keys [items-raw expanded-raw selected-raw selection-raw label
                   loading-text guides focused]}
           prev)

The model of the attribute texts in the -raw keys of raw, and the focused id in :focused. With prev, the model before, it keeps the index of prev while items is the same text.

The model of the attribute texts in the `-raw` keys of `raw`, and the focused id in
`:focused`. With `prev`, the model before, it keeps the index of `prev` while `items` is
the same text.
sourceraw docstring

observed-attributescljs

source

parse-listcljs

(parse-list s)

The array that the JSON text s holds, as a vector with keyword keys, or nil.

The array that the JSON text `s` holds, as a vector with keyword keys, or nil.
sourceraw docstring

parse-selectioncljs

(parse-selection s)

The selection mode that s names, or :single.

The selection mode that `s` names, or `:single`.
sourceraw docstring

placescljs

(places m)

The wanted places of m for places/sync!: the top level under :tree, and each visible id with its children when it is open, else none.

The wanted places of `m` for `places/sync!`: the top level under `:tree`, and each visible id
with its children when it is open, else none.
sourceraw docstring

places->visiblecljs

(places->visible pl)

The visible ids of the places pl, in tree order.

The visible ids of the places `pl`, in tree order.
sourceraw docstring

property-apicljs

source

resolve-focuscljs

(resolve-focus m focused)

The id that takes focus in m: focused or its nearest visible ancestor, else the first selected id or its nearest visible ancestor, else the first visible id. Nil with no items.

The id that takes focus in `m`: `focused` or its nearest visible ancestor, else the first
selected id or its nearest visible ancestor, else the first visible id. Nil with no items.
sourceraw docstring

rowcljs

(row m id)

The facts the tree writes for the item id of m.

The facts the tree writes for the item `id` of `m`.
sourceraw docstring

row->attrscljs

(row->attrs {:keys [level setsize posinset branch? disabled? focused? loading?
                    guide-active? expanded select check]})

The attributes of each part of the item of row. Nil removes an attribute.

The attributes of each part of the item of `row`. Nil removes an attribute.
sourceraw docstring

stepcljs

(step m {:keys [op id]})

The model after action. Every action focuses its id.

The model after `action`. Every action focuses its id.
sourceraw docstring

tag-namecljs

source

targetcljs

(target m id move)

The id that move reaches from id in m, or nil.

The id that `move` reaches from `id` in `m`, or nil.
sourceraw docstring

visiblecljs

(visible m)

The visible ids of m, in tree order.

The visible ids of `m`, in tree order.
sourceraw docstring

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