Liking cljdoc? Tell your friends :D

com.hyperphor.way.web-utils


browser-urlcljs

(browser-url)

doc-iconcljs

(doc-icon url & [popup])

editable-text-widgetcljs

(editable-text-widget key {:keys [initial-value change-event] :as options})

Generate editable text widget, with controls key: A keyword to identify this in the db initial-vlue: change-event: an event vector, the value will be appended

Generate editable text widget, with controls
key: A keyword to identify this in the db
initial-vlue:
change-event: an event vector, the value will be appended
raw docstring

editable-text-widget-flexcljs

(editable-text-widget-flex key
                           {:keys [initial-value normal change-event validator
                                   normal-class borderless?]
                            :as options})

The most abstract form of editable-text-widget. normal is a fn that displays the non-edited value. See editable-text-widget

The most abstract form of editable-text-widget. normal is a fn that displays the non-edited value. See editable-text-widget
raw docstring

editable-text-widget-formcljs

(editable-text-widget-form key {:keys [label] :as options})

Same as editable-text-widget but formatted for a 2-column form

Same as editable-text-widget but formatted for a 2-column form
raw docstring

editable-textarea-widgetcljs

(editable-textarea-widget key initial-value change-fn)

editable-url-widgetcljs

(editable-url-widget key
                     {:keys [initial-value link-text label change-event]
                      :as options})

Generate editable url widget, with controls key: A keyword to identify this in the db initial-vlue: change-event: an event vector, the value will be appended

Generate editable url widget, with controls
key: A keyword to identify this in the db
initial-vlue:
change-event: an event vector, the value will be appended
raw docstring

editable-url-widget-formcljs

(editable-url-widget-form key {:keys [label] :as options})

Same as editable-url-widget but formatted for a 2-column form

Same as editable-url-widget but formatted for a 2-column form
raw docstring

get-local-storagecljs

(get-local-storage key)

humanizecljs

(humanize term)

js-formatcljs

(js-format s & args)

keyifycljs

(keyify seq root)

This adds :key metadata to any elt of seq that can have it. Use this to cure 'Warning: Every element in a seq should have a unique :key:' warning messages

This adds :key metadata to any elt of seq that can have it.
Use this to cure 'Warning: Every element in a seq should have a unique :key:' warning messages
raw docstring

none-valuecljs


open-in-browser-tabcljs

(open-in-browser-tab url name)

select-widgetcljs

(select-widget id value dispatch options prompt & [disabled? styles])

Render a select widget. id: HTML id value: the current value (typically a rf/subscribe) dispatch: fn to call with new value (typically a rf/dispatch) options: a seq, each elt is either:

  • a string
  • a map of the form {:value ... :label ...}
  • a map of the form {:optgroup <name> :options <seq>} prompt: a value to display initially before a value is selected, and can be used to choose nil Note: select widget doesn't have a separate prompt, so gets added to the option list. If you don't want nil to be selectable, omit prompt (yes prompt is complecting a couple of things, but it works out)
Render a select widget.
id: HTML id
value: the current value (typically a rf/subscribe)
dispatch: fn to call with new value (typically a rf/dispatch)
options: a seq, each elt is either:
   - a string 
   - a map of the form {:value ... :label ...}  
   - a map of the form {:optgroup <name> :options <seq>}
prompt: a value to display initially before a value is selected, and can be used to choose nil
  Note: select widget doesn't have a separate prompt, so gets added to the option list.
  If you don't want nil to be selectable, omit prompt (yes prompt is complecting a couple of things, but it works out)
raw docstring

select-widget-optionscljs

(select-widget-options options prompt)

set-local-storagecljs

(set-local-storage key value)

spinnercljs

(spinner & [size])

Make a spinner. Size 10 is big, size 1 or 2 is good

Make a spinner. Size 10 is big, size 1 or 2 is good
raw docstring

static-refcljs

(static-ref path)

validate-urlcljs

(validate-url u)

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

× close