Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.34 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.34 KB

omdev

An Om component that enlive your existing component adding extra features for developement. http://jvuillermet.svbtle.com/om-dev-component

  • State history navigation (undo/redo)
  • State snapshot
  • State inspection & edition(soon) with ankha
  • Go to State input
  • Pretty print (js object & edn) in console
  • Print State history on javascript error
  • hopefully more to come ...

Running example based on Om counters example: http://iorekz.github.io/

Usage

Clojars Project

Just replace om/root with omdev/dev-component

(ns goss.core
  (:require [om.core :as om :include-macros true]
            [om.dom :as dom :include-macros true]
            [omdev.core :as omdev]))

(omdev/dev-component my-component
    (atom {:text "Instrument!"
           :list [{:text "Milk"} {:text "Cookies"} {:text "Applesss"}]})
    {:target (.getElementById js/document "app")
     :tx-listen (fn [tx-data root-cursor]
                  (println "listener 1: " tx-data))})

License

Copyright © 2014 Jeremy Vuillermet

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.