(app-watch watch-key app-ref old-value new-value)
(apply-attributes {:keys [onscreen-component app-ref old-view new-view]})
(build-ui app-ref view)
Take a view and realize it.
Take a view and realize it.
(children-applier? attr-applier)
(component-applier? attr-applier)
(component-did-mount? old-value new-value)
(create-comp app-ref comp)
(create-comp app-ref comp props)
Create a new top level component. There should not be many of these. This is akin to a main window. In the most extreme cases there may be a couple hundred of these. In a typical case there will be between one component and a half a dozen components. The code is optimized for a small number of top level components.
Create a new top level component. There should not be many of these. This is akin to a main window. In the most extreme cases there may be a couple hundred of these. In a typical case there will be between one component and a half a dozen components. The code is optimized for a small number of top level components.
(init-app)
(init-app comp)
(init-app comp props)
Initialize app data as an atom and return the atom. The atom is wired in to necessary watches, core.async channels, and any other fns and structures to make it functional and not just a regular atom. The result is an atom that is reactive to changes according to FRP (Functional Reactive Programming). Components may subsequently be added to the app. For convenience there is a single arg version of this fn that will create a component. Although nothing prevents multiple calls to init-app and the code will work properly when multiple calls are made, init-app is intended to be called once. The resources (including threads) allocated are done so as if this is for the entire application.
Initialize app data as an atom and return the atom. The atom is wired in to necessary watches, core.async channels, and any other fns and structures to make it functional and not just a regular atom. The result is an atom that is reactive to changes according to FRP (Functional Reactive Programming). Components may subsequently be added to the app. For convenience there is a single arg version of this fn that will create a component. Although nothing prevents multiple calls to init-app and the code will work properly when multiple calls are made, init-app is intended to be called once. The resources (including threads) allocated are done so as if this is for the entire application.
(instantiate-class ui)
(pad col length)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close