(aria-sort-value {:keys [sortable? sort-direction]})Return aria-sort string or nil if not applicable. Set only when sortable is true or sort-direction is not "none".
Return aria-sort string or nil if not applicable. Set only when sortable is true or sort-direction is not "none".
(connected-detail {:keys [type scope col-span row-span align]})Build the event detail map for x-table-cell-connected.
Build the event detail map for x-table-cell-connected.
(next-sort-direction current)Cycle sort direction: none → asc → desc → none.
Cycle sort direction: none → asc → desc → none.
(normalize {:keys [type-raw scope-raw align-raw valign-raw col-span-raw
row-span-raw truncate? sticky-raw sortable?
sort-direction-raw disabled?]})Produce a canonical view-model map from raw attribute inputs.
Input keys: :type-raw string | nil :scope-raw string | nil :align-raw string | nil :valign-raw string | nil :col-span-raw string | nil :row-span-raw string | nil :truncate? boolean :sticky-raw string | nil :sortable? boolean :sort-direction-raw string | nil :disabled? boolean
Output keys mirror the attribute semantics with parsed/normalised values.
Produce a canonical view-model map from raw attribute inputs. Input keys: :type-raw string | nil :scope-raw string | nil :align-raw string | nil :valign-raw string | nil :col-span-raw string | nil :row-span-raw string | nil :truncate? boolean :sticky-raw string | nil :sortable? boolean :sort-direction-raw string | nil :disabled? boolean Output keys mirror the attribute semantics with parsed/normalised values.
(parse-align s)Normalise align attribute. Unknown/nil → "start".
Normalise align attribute. Unknown/nil → "start".
(parse-scope s)Normalise scope attribute. Unknown/nil → "col".
Normalise scope attribute. Unknown/nil → "col".
(parse-sort-direction s)Normalise sort-direction attribute. Unknown/nil → "none".
Normalise sort-direction attribute. Unknown/nil → "none".
(parse-span s)Parse a col-span or row-span attribute to a positive integer. Invalid/nil → 1.
Parse a col-span or row-span attribute to a positive integer. Invalid/nil → 1.
(parse-sticky s)Normalise sticky attribute. Unknown/nil → "none".
Normalise sticky attribute. Unknown/nil → "none".
(parse-type s)Normalise type attribute. Unknown/nil → "data".
Normalise type attribute. Unknown/nil → "data".
(parse-valign s)Normalise valign attribute. Unknown/nil → "middle".
Normalise valign attribute. Unknown/nil → "middle".
(role-for-cell {:keys [type scope]})Return the ARIA role string for the host element based on type and scope.
Return the ARIA role string for the host element based on type and scope.
(sort-btn-aria-label current-direction)Return the aria-label for the sort button describing the action that will occur.
Return the aria-label for the sort button describing the action that will occur.
(sort-btn-tabindex {:keys [type sortable? disabled?]})Returns "0" when the sort button should be keyboard-focusable, else "-1".
Returns "0" when the sort button should be keyboard-focusable, else "-1".
(sort-btn-visible? {:keys [type sortable?]})Sort button is visible only for header cells with sortable=true.
Sort button is visible only for header cells with sortable=true.
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 |