Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added React.js like render mechanism #219

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ertugrulcetin
Copy link

@ertugrulcetin ertugrulcetin commented Aug 28, 2018

When SAtom (special atom type) changes, components which use this satom also re-renders their look.

Simple usage:

(ns seesaw.ex
  (:require [seesaw.core :as sw]
            [seesaw.options :as op]))

(def size (op/satom [150 :by 150]))

(def ff (sw/frame :title "My Title"
                  :size size
                  :visible? true))

(reset! size [300 :by 300]) ;;re-renders UI

@ertugrulcetin
Copy link
Author

@daveray Travis produced: FAILURE: Namespaces seesaw.test.core #'seesaw.core/text can retrieve the value of :caret-position from a widget which I did not understand why?

project.clj Outdated
@@ -20,7 +20,7 @@
;
:aliases { "examples" ["run" "-m" "seesaw.test.examples.launcher"] }

:dependencies [[org.clojure/clojure "1.8.0"]
:dependencies [[org.clojure/clojure "1.4.0"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted to 1.8.0 again

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tried to find out how jenkins tests work

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants