create text nodes

This commit is contained in:
David Botton 2022-08-30 00:10:20 -04:00
parent d05269e0d3
commit d71c8f6011
2 changed files with 29 additions and 4 deletions

View file

@ -235,6 +235,29 @@ after attachment is changed to one unique to this session."))
(jquery-execute obj (format nil "append(~A)" (script-id next-obj))) (jquery-execute obj (format nil "append(~A)" (script-id next-obj)))
next-obj) next-obj)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; place-text-inside-top-of ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defgeneric place-text-inside-top-of (clog-obj text)
(:documentation "Places text inside top of CLOG-OBJ in DOM"))
(defmethod place-text-inside-top-of ((obj clog-obj) text)
(jquery-execute obj (format nil "prepend(document.createTextNode('~A'))" text))
text)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; place-text-inside-bottom-of ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defgeneric place-text-inside-bottom-of (clog-obj text)
(:documentation "Places text inside bottom of CLOG-OBJ in DOM"))
(defmethod place-text-inside-bottom-of ((obj clog-obj) text)
(jquery-execute obj (format nil "append(document.createTextNode('~A'))" text))
text)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Properties - clog-element ;; Properties - clog-element
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

View file

@ -201,6 +201,8 @@ embedded in a native template application.)"
(place-before generic-function) (place-before generic-function)
(place-inside-top-of generic-function) (place-inside-top-of generic-function)
(place-inside-bottom-of generic-function) (place-inside-bottom-of generic-function)
(place-text-inside-top-of generic-function)
(place-text-inside-bottom-of generic-function)
"CLOG-Element - General Properties" "CLOG-Element - General Properties"
(style generic-function) (style generic-function)