From 7fb0c33660869d4ec98c795e77a166a3d56dd691 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Wed, 6 Apr 2016 18:21:57 +0200 Subject: [PATCH] Describe DOM example. --- js/examples/index.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/js/examples/index.md b/js/examples/index.md index 19c1236..166fbde 100644 --- a/js/examples/index.md +++ b/js/examples/index.md @@ -16,6 +16,18 @@ Syndicate/js jQuery driver to subscribe to button click events. - [DEMO](button/) - [Source code](button/index.js) using the Syndicate/js DSL +## DOM example + +This example demonstrates two actors, each using the Syndicate/js DOM +driver to display user interface, and the jQuery driver to receive +events from it. The first actor presents a button to the user, which +when clicked sends a message to the other actor. The second actor +receives messages from the first, updates its internal state, and +reflects its new internal state in its visible UI. + + - [DEMO](dom/) + - [Source code](dom/index.js) in plain JavaScript + ## jQuery Example This example is similar to the button example, but uses plain