Liking cljdoc? Tell your friends :D

hatti.views.table


all-fieldscljs

(all-fields form)

Given a (flat-)form, returns fields for table display. Puts extra fields in the beginning, metadata at the end of the table, and drops fields that have no data (eg. group/note).

Given a (flat-)form, returns fields for table display.
Puts extra fields in the beginning, metadata at the end of the table,
and drops fields that have no data (eg. group/note).
sourceraw docstring

bind-external-sg-grid-dataview-handlerscljs

(bind-external-sg-grid-dataview-handlers dataview event-handlers)
source

bind-external-sg-grid-event-handlerscljs

(bind-external-sg-grid-event-handlers grid event-handlers)
source

check-select-unselect-all-records-element?cljs

(check-select-unselect-all-records-element?)
source

column-name-html-stringcljs

(column-name-html-string column-class label hxl)

The html needed for a column name as a string. String, String, Bool -> String

The html needed for a column name as a string.
String, String, Bool -> String
sourceraw docstring

compfncljs

(compfn args)

Comparator function for the slickgrid dataview. args.sortCol is the column being sorted, a and b are rows to compare. Claims a is bigger (return 1) if value for a > b, or a is null / empty.

Comparator function for the slickgrid dataview.
args.sortCol is the column being sorted, a and b are rows to compare.
Claims a is bigger (return 1) if value for a > b, or a is null / empty.
sourceraw docstring

default-num-displayed-recordscljs

source

(delayed-search input query-event-key)

Delayed search fires a query-event on event-chan if the value of the input doesn't change within 150 ms (ie, user is still typing). Call on-change or on-key-up, with (.-target event) as first argument.

Delayed search fires a query-event on event-chan if the value of the input
doesn't change within 150 ms (ie, user is still typing).
Call on-change or on-key-up, with (.-target event) as first argument.
sourceraw docstring

delete-record-classcljs

source

filterfncljs

(filterfn form item args)

Filter function for the slickgrid dataview, use as (partial filterfn form) item is the row, args contains query. Return value of false corresponds with exclusion, true with inclusion.

Filter function for the slickgrid dataview, use as (partial filterfn form)
item is the row, args contains query.
Return value of false corresponds with exclusion, true with inclusion.
sourceraw docstring

formattercljs

(formatter field language field-key row cell value columnDef dataContext)

Formatter for slickgrid columns takes row,cell,value,columnDef,dataContext. Get one with (partial formatter field language).

Formatter for slickgrid columns takes row,cell,value,columnDef,dataContext.
Get one with (partial formatter field language).
sourceraw docstring

get-checkbox-selectorcljs

(get-checkbox-selector data-id)
source

get-delete-checkbox-by-data-idcljs

(get-delete-checkbox-by-data-id data-id)
source

get-elements-count-by-selectorcljs

(get-elements-count-by-selector selector)
source

get-table-view-heightcljs

(get-table-view-height)
source

handle-table-eventscljs

(handle-table-events app-state grid dataview)

Event loop for the table view. Processes a tap of share/event-chan, and updates app-state/dataview/grid as needed.

Event loop for the table view. Processes a tap of share/event-chan,
and updates app-state/dataview/grid as needed.
sourceraw docstring

higlight-rows-marked-to-be-deletedcljs

(higlight-rows-marked-to-be-deleted grid)
source

init-sg-pagercljs

(init-sg-pager grid dataview)
source

pager-idcljs

source

replace-review-num-status-with-text-statuscljs

(replace-review-num-status-with-text-status data)
source

resizeColumnscljs

(resizeColumns grid)
source

select-rows-marked-to-be-deletedcljs

(select-rows-marked-to-be-deleted)
source

select-unselect-all-records-elementcljs

source

select-unselect-all-records-idcljs

source

set-window-resize-handlercljs

(set-window-resize-handler owner)
source

sg-initcljs

(sg-init data
         form
         current-language
         owner
         {:keys [grid-event-handlers dataview-event-handlers]})

Creates a Slick.Grid backed by Slick.Data.DataView from data and fields. Most events are handled by slickgrid. On double-click, event is put on chan. Returns [grid dataview].

Creates a Slick.Grid backed by Slick.Data.DataView from data and fields.
Most events are handled by slickgrid. On double-click, event is put on chan.
Returns [grid dataview].
sourceraw docstring

sg-optionscljs

Options to feed the slickgrid constructor.

Options to feed the slickgrid constructor.
sourceraw docstring

submission-review-fieldscljs

(submission-review-fields cols)
source

table-idcljs

source

update-data-to-be-deleted-vectorcljs

(update-data-to-be-deleted-vector checked? data-id)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close