-
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
ww-error
|
ww-error
|
||||||
ww-set-log-level
|
ww-set-log-level
|
||||||
ww-log-level
|
ww-log-level
|
||||||
|
ww-exec-js
|
||||||
|
|
||||||
(all-from-out "css.rkt")
|
(all-from-out "css.rkt")
|
||||||
(all-from-out "menu.rkt")
|
(all-from-out "menu.rkt")
|
||||||
@@ -108,6 +109,9 @@
|
|||||||
(ww-error (format "callback for ~a: ~a" evt e)))])
|
(ww-error (format "callback for ~a: ~a" evt e)))])
|
||||||
(apply cb args)))))
|
(apply cb args)))))
|
||||||
|
|
||||||
|
(define/public (exec-js js)
|
||||||
|
(ww-exec-js win-id js))
|
||||||
|
|
||||||
(define/public (connect evt func)
|
(define/public (connect evt func)
|
||||||
(hash-set! connected-callbacks evt func))
|
(hash-set! connected-callbacks evt func))
|
||||||
|
|
||||||
@@ -449,6 +453,9 @@
|
|||||||
|
|
||||||
(define/public (get-win-id) win-id)
|
(define/public (get-win-id) win-id)
|
||||||
|
|
||||||
|
(define/public (exec-js js)
|
||||||
|
(ww-exec-js win-id js))
|
||||||
|
|
||||||
(define (cl-selector tag type)
|
(define (cl-selector tag type)
|
||||||
(cond
|
(cond
|
||||||
([eq? tag 'INPUT]
|
([eq? tag 'INPUT]
|
||||||
|
|||||||
@@ -76,6 +76,8 @@
|
|||||||
ww-on
|
ww-on
|
||||||
ww-element-info
|
ww-element-info
|
||||||
|
|
||||||
|
ww-exec-js
|
||||||
|
|
||||||
ww-file-open
|
ww-file-open
|
||||||
ww-file-save
|
ww-file-save
|
||||||
ww-choose-dir
|
ww-choose-dir
|
||||||
@@ -915,6 +917,12 @@
|
|||||||
|
|
||||||
(define (ww-await . args)
|
(define (ww-await . args)
|
||||||
#t)
|
#t)
|
||||||
|
|
||||||
|
;; Execute Javascript
|
||||||
|
(def-cmd ww-exec-js
|
||||||
|
exec-js ((win-id ww-win?)
|
||||||
|
(js string?)) () -> string)
|
||||||
|
|
||||||
|
|
||||||
;; get value of an element
|
;; get value of an element
|
||||||
(def-cmd ww-get-value
|
(def-cmd ww-get-value
|
||||||
|
|||||||
Reference in New Issue
Block a user