Liking cljdoc? Tell your friends :D

app.components.x-table.model


aria-multiselectablecljs

(aria-multiselectable selectable)

Return "true" for multi-select, nil otherwise (attribute should be removed).

Return "true" for multi-select, nil otherwise (attribute should be removed).
raw docstring

attr-borderedcljs


attr-captioncljs


attr-columnscljs


attr-compactcljs


attr-full-widthcljs


attr-row-countcljs


attr-selectablecljs


attr-stripedcljs


event-row-selectcljs


event-schemacljs


event-sortcljs


normalizecljs

(normalize {:keys [columns-raw caption-raw selectable-raw striped? bordered?
                   full-width? compact? row-count-raw]})

Produce a canonical view-model map from raw attribute inputs.

Input keys: :columns-raw string | nil :caption-raw string | nil :selectable-raw string | nil :striped? boolean :bordered? boolean :full-width? boolean :compact? boolean :row-count-raw string | nil

Output keys mirror the attribute semantics with parsed/normalised values.

Produce a canonical view-model map from raw attribute inputs.

Input keys:
  :columns-raw     string | nil
  :caption-raw     string | nil
  :selectable-raw  string | nil
  :striped?        boolean
  :bordered?       boolean
  :full-width?     boolean
  :compact?        boolean
  :row-count-raw   string | nil

Output keys mirror the attribute semantics with parsed/normalised values.
raw docstring

observed-attributescljs


parse-columnscljs

(parse-columns s)

Parse columns attribute to a CSS grid-template-columns string. A positive integer string (e.g. "4") becomes "repeat(4,1fr)". Any other non-empty string is returned as-is. Nil or blank → nil (no explicit template).

Parse `columns` attribute to a CSS grid-template-columns string.
A positive integer string (e.g. "4") becomes "repeat(4,1fr)".
Any other non-empty string is returned as-is.
Nil or blank → nil (no explicit template).
raw docstring

parse-row-countcljs

(parse-row-count s)

Parse row-count to a positive integer, or nil if absent/invalid.

Parse row-count to a positive integer, or nil if absent/invalid.
raw docstring

parse-selectablecljs

(parse-selectable s)

Normalise selectable attribute. Unknown/nil → "none".

Normalise selectable attribute. Unknown/nil → "none".
raw docstring

property-apicljs


role-for-selectablecljs

(role-for-selectable selectable)

Return ARIA role string. "none" → "table"; any selection mode → "grid".

Return ARIA role string. "none" → "table"; any selection mode → "grid".
raw docstring

row-select-detailcljs

(row-select-detail row-index selected? selectable)

Build event detail for x-table-row-select.

Build event detail for x-table-row-select.
raw docstring

sort-detailcljs

(sort-detail col-index direction previous-direction)

Build event detail for x-table-sort.

Build event detail for x-table-sort.
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