Liking cljdoc? Tell your friends :D

hatti.map.viewby


all-but-nil-selectedcljs

(all-but-nil-selected answers)
source

apply-view-by!cljs

(apply-view-by! {:keys [id->answers] :as view-by-info} owner)
source

filter-answer-data-structurescljs

(filter-answer-data-structures answers query field language)

Given a list of answers + query, returns map from answers to true/false. True if query is in the answer, false if not.

Given a list of answers + query, returns map from answers to true/false.
True if query is in the answer, false if not.
sourceraw docstring

get-selected-idscljs

(get-selected-ids view-by)

Returns selected ids from view-by data

Returns selected ids from view-by data
sourceraw docstring

has-geolocation?cljs

(has-geolocation? {[lattitude longitude] "_geolocation"})
source

id-color-selectedcljs

(id-color-selected {:keys [field id->answers answer->color answer->selected?]})

Generates id-color and id-selected? functions based on viewby-info.

Generates id-color and id-selected? functions based on viewby-info.
sourceraw docstring

preprocess-answerscljs

(preprocess-answers field raw-answers)

Preproccesses answers depending on the field. For multi-selects, return type is a list of list of strings. For other types, a list of strings.

Preproccesses answers depending on the field. For multi-selects, return type
is a list of list of strings. For other types, a list of strings.
sourceraw docstring

toggle-answer-selectedcljs

(toggle-answer-selected answer->selected? visible-answers answer)

This function appropriately toggles answer->selected? when answer is clicked answer->selected? is a map from answers to true/false. Special rules: First click = select the answer. If nothing clicked, make everything clicked.

This function appropriately toggles answer->selected? when answer is clicked
answer->selected? is a map from answers to true/false. Special rules:
First click = select the answer. If nothing clicked, make everything
clicked.
sourceraw docstring

view-by!cljs

(view-by! view-by-info markers)
source

viewby-datacljs

(viewby-data {:keys [full-name] :as field} data)

Produces a set of data structures / functions for view-by. answers are a list of answers, sorted by count; id->answers is a mapping from id to either one or many answers answer->count, answer->selected?, answer->color are maps from answer; used for the legend rendering. An 'answer' is mapped from a data element, eg. a bin for numbers/dates, an option for multiple/single selects.

Produces a set of data structures / functions for view-by.
answers are a list of answers, sorted by count;
id->answers is a mapping from id to either one or many answers
answer->count, answer->selected?, answer->color are maps from answer;
used for the legend rendering. An 'answer' is mapped from a data element,
eg. a bin for numbers/dates, an option for multiple/single selects.
sourceraw docstring

viewby-infocljs

(viewby-info {:keys [full-name] :as field} data)

Produces a set of data structures / functions for view-by. answers are a list of answers, sorted by count; id->answers is a mapping from id to either one or many answers answer->count, answer->selected?, answer->color are maps from answer; used for the legend rendering. An 'answer' is mapped from a data element, eg. a bin for numbers/dates, an option for multiple/single selects.

Produces a set of data structures / functions for view-by.
answers are a list of answers, sorted by count;
id->answers is a mapping from id to either one or many answers
answer->count, answer->selected?, answer->color are maps from answer;
used for the legend rendering. An 'answer' is mapped from a data element,
eg. a bin for numbers/dates, an option for multiple/single selects.
sourceraw docstring

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

× close