Liking cljdoc? Tell your friends :D

bluegenes.components.search.resultrow


result-rowcljsmultimethod

Result-row outputs nicely formatted type-specific results for common types and has a default that just outputs all non id, type, and relevance fields.

Result-row outputs nicely formatted type-specific results for common types
and has a default that just outputs all non id, type, and relevance fields.
sourceraw docstring

result-selection-controlcljs

(result-selection-control result)

UI control suggesting to the user that there is only one result selectable at any one time; there's no actual form functionality here.

UI control suggesting to the user that there is only one result selectable at any one time; there's no actual form functionality here.
sourceraw docstring

row-structurecljs

(row-structure row-data contents)

This method abstracts away most of the common components for all the result-row baby methods.

This method abstracts away most of the common components for all the result-row baby methods.
sourceraw docstring

showcljs

(show row-data selector)

Helper: fetch a result from the data model, adding a highlight if the setting is enabled.

Helper: fetch a result from the data model, adding a highlight if the setting is enabled.
sourceraw docstring

wrap-termcljs

(wrap-term broken-string term)

Joins an array of terms which have already been broken on [term] adding a highlight class as we go. So given the search term 'bob' and the string 'I love bob the builder', we'll return something like '[:span I love [:span.searchterm 'bob'] the builder]'. TODO: If we know ways to refactor this, let's do so. It's verrry slow.

Joins an array of terms which have already been broken on [term] adding a highlight class as we go.
So given the search term 'bob' and the string 'I love bob the builder', we'll return something like
'[:span I love [:span.searchterm 'bob'] the builder]'.
TODO: If we know ways to refactor this, let's do so. It's verrry slow.
sourceraw docstring

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

× close