on-input added, on-create/setup before other events

This commit is contained in:
David Botton 2022-07-17 16:11:24 -04:00
parent 6bf8860b94
commit f9143f9111
6 changed files with 54 additions and 47 deletions

View file

@ -614,6 +614,17 @@ is nil unbind the event."))
(defmethod set-on-change ((obj clog-obj) handler)
(set-on-event obj "change" handler))
;;;;;;;;;;;;;;;;;;
;; set-on-input ;;
;;;;;;;;;;;;;;;;;;
(defgeneric set-on-input (clog-obj on-input-handler)
(:documentation "Set the ON-INPUT-HANDLER for CLOG-OBJ. If ON-INPUT-HANDLER
is nil unbind the event."))
(defmethod set-on-input ((obj clog-obj) handler)
(set-on-event obj "input" handler))
;;;;;;;;;;;;;;;;;;;;;;;
;; set-on-drag-start ;;
;;;;;;;;;;;;;;;;;;;;;;;