mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-23 02:20:51 -08:00
add select-text
This commit is contained in:
parent
956cca8fa9
commit
9bdba6c136
2 changed files with 12 additions and 0 deletions
|
|
@ -1067,6 +1067,17 @@ optionally fill in with contents of data-list."))
|
||||||
(escape-string content))
|
(escape-string content))
|
||||||
:clog-type 'clog-element :auto-place t))
|
:clog-type 'clog-element :auto-place t))
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;
|
||||||
|
;; select-text ;;
|
||||||
|
;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
(defgeneric select-text (clog-obj)
|
||||||
|
(:documentation "Returns the text of selected item."))
|
||||||
|
|
||||||
|
(defmethod select-text ((obj clog-obj))
|
||||||
|
(clog-connection:query (connection-id obj)
|
||||||
|
(format nil "$('#~A option:selected').text()" (html-id obj))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Implementation - clog-option
|
;; Implementation - clog-option
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
|
||||||
|
|
@ -684,6 +684,7 @@ embedded in a native template application.)"
|
||||||
(add-select-option generic-function)
|
(add-select-option generic-function)
|
||||||
(add-select-options generic-function)
|
(add-select-options generic-function)
|
||||||
(add-select-optgroup generic-function)
|
(add-select-optgroup generic-function)
|
||||||
|
(select-text generic-function)
|
||||||
|
|
||||||
"CLOG-Data-List - Class for CLOG Option Data Lists"
|
"CLOG-Data-List - Class for CLOG Option Data Lists"
|
||||||
(clog-data-list class)
|
(clog-data-list class)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue