(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).
(bind-external-sg-grid-dataview-handlers dataview event-handlers)
(bind-external-sg-grid-event-handlers grid event-handlers)
(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
(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.
(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.
(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.
(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).
(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.
(replace-review-num-status-with-text-status data)
(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].
Options to feed the slickgrid constructor.
Options to feed the slickgrid constructor.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close