Liking cljdoc? Tell your friends :D

com.hyperphor.way.web-utils


browser-urlcljs

(browser-url)
source

doc-iconcljs

(doc-icon url & [popup])
source

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
sourceraw 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
sourceraw 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
sourceraw docstring

editable-textarea-widgetcljs

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

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
sourceraw 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
sourceraw docstring

get-local-storagecljs

(get-local-storage key)
source

humanizecljs

(humanize term)
source

js-formatcljs

(js-format s & args)
source

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
sourceraw docstring

none-valuecljs

source

open-in-browser-tabcljs

(open-in-browser-tab url name)
source

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)
sourceraw docstring

select-widget-optionscljs

(select-widget-options options prompt)
source

set-local-storagecljs

(set-local-storage key value)
source

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
sourceraw docstring

static-refcljs

(static-ref path)
source

validate-urlcljs

(validate-url u)
source

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

× close