each custom control project own category

This commit is contained in:
David Botton 2022-06-27 19:03:58 -04:00
parent 57fb538591
commit d36f1a5426
3 changed files with 10 additions and 10 deletions

View file

@ -2,7 +2,13 @@
(progn (progn
(clog-tools:add-supported-controls (clog-tools:add-supported-controls
(list `(;; unique name to control used to identify it the .clog xml (list '(:name "group"
:description "<%= (@ sys-name) %> Controls"
:create nil
:create-type nil
:events nil
:properties nil)
`(;; unique name to control used to identify it the .clog xml
:name "<%= (@ sys-name) %>" :name "<%= (@ sys-name) %>"
;; how control appears in builder control list ;; how control appears in builder control list
:description "<%= (@ sys-name) %>" :description "<%= (@ sys-name) %>"

View file

@ -1693,14 +1693,7 @@
:attr "data-clog-one-row-limit") :attr "data-clog-one-row-limit")
(:name "join to slot-name (optional)" (:name "join to slot-name (optional)"
:attr "data-clog-one-row-master") :attr "data-clog-one-row-master")
,@*props-form-element*)) ,@*props-form-element*))))
'(:name "group"
:description "Custom Controls"
:create nil
:create-type nil
:events nil
:properties nil)))
(defparameter *supported-templates* (defparameter *supported-templates*
(list (list

View file

@ -260,7 +260,8 @@ replaced."
(dolist (r control-records) (dolist (r control-records)
(setf *supported-controls* (setf *supported-controls*
(append (remove-if (lambda (x) (append (remove-if (lambda (x)
(equal (getf x :name) (getf r :name))) (unless (equalp (getf x :name) "group")
(equal (getf x :name) (getf r :name))))
*supported-controls*) *supported-controls*)
(list r))))) (list r)))))