X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/blobdiff_plain/2cb4247de9700f350d146a65c4156d7959d0bb8d..44108fd67c22992f320e2ea2424bab38a6547473:/src/mewa/slot-presentations.lisp?ds=sidebyside diff --git a/src/mewa/slot-presentations.lisp b/src/mewa/slot-presentations.lisp index 2ed5b32..2232ec1 100644 --- a/src/mewa/slot-presentations.lisp +++ b/src/mewa/slot-presentations.lisp @@ -10,6 +10,28 @@ (multiple-value-funcall->list #',(car form) ,@(cdr form)) ,@body)) + +;;;; ** Textarea Slot Presentation +;;;; This should really be in UCW. + +(defslot-presentation text-slot-presentation () + ((rows :initarg :rows :accessor rows :initform nil) + (columns :initarg :columns :accessor columns :initform nil) + (html-contentp :initarg :escape-html-p :accessor escape-html-p :initform nil)) + (:type-name text)) + +(defmethod present-slot ((slot text-slot-presentation) instance) + (if (editablep slot) + (