mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
Support target object on events
This commit is contained in:
parent
f897486c81
commit
34971a7c90
10 changed files with 119 additions and 50 deletions
|
|
@ -21,7 +21,7 @@
|
|||
(create-child body "<h1>Hello World! (click me!)</h1>")))
|
||||
|
||||
(set-on-click hello-element ; Now we set a function to handle clicks
|
||||
(lambda () ; In this case we use an anonymous function
|
||||
(lambda (obj) ; In this case we use an anonymous function
|
||||
(setf (color hello-element) "green")))))
|
||||
;; To see all the events one can set and the many properties and styles that
|
||||
;; exist, take a look through the CLOG manual or the file clog-element.lisp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue