mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 10:40:45 -08:00
Post creation call back for settings. img and link added.
This commit is contained in:
parent
1bd269dd40
commit
3977cec559
2 changed files with 32 additions and 1 deletions
|
|
@ -7,6 +7,10 @@
|
||||||
:control "input")
|
:control "input")
|
||||||
'(:tag "form"
|
'(:tag "form"
|
||||||
:control "form")
|
:control "form")
|
||||||
|
'(:tag "button"
|
||||||
|
:control "button")
|
||||||
|
'(:tag "a"
|
||||||
|
:control "link")
|
||||||
'(:tag "span"
|
'(:tag "span"
|
||||||
:control "span")
|
:control "span")
|
||||||
'(:tag "div"
|
'(:tag "div"
|
||||||
|
|
@ -329,6 +333,31 @@
|
||||||
:create-type :element
|
:create-type :element
|
||||||
:create-content "button"
|
:create-content "button"
|
||||||
:properties (,@*props-element*))
|
:properties (,@*props-element*))
|
||||||
|
`(:name "link"
|
||||||
|
:description "Link"
|
||||||
|
:clog-type clog:clog-a
|
||||||
|
:create clog:create-a
|
||||||
|
:create-type :element
|
||||||
|
:create-content "HTML Link"
|
||||||
|
:properties ((:name "href link"
|
||||||
|
:prop "href")
|
||||||
|
(:name "target"
|
||||||
|
:prop "target")
|
||||||
|
,@*props-element*))
|
||||||
|
`(:name "image"
|
||||||
|
:description "Image"
|
||||||
|
:clog-type clog:clog-img
|
||||||
|
:create clog:create-img
|
||||||
|
:create-type :base
|
||||||
|
:setup ,(lambda (control control-record)
|
||||||
|
(declare (ignore control-record))
|
||||||
|
(setf (url-src control) "/img/clogicon.png")
|
||||||
|
(setf (alt-text control) "Add image url"))
|
||||||
|
:properties ((:name "image url"
|
||||||
|
:prop "src")
|
||||||
|
(:name "alternative text"
|
||||||
|
:prop "alt")
|
||||||
|
,@*props-element*))
|
||||||
`(:name "form"
|
`(:name "form"
|
||||||
:description "Form"
|
:description "Form"
|
||||||
:clog-type clog:clog-form
|
:clog-type clog:clog-form
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,9 @@
|
||||||
:value (getf control-record :create-value)))
|
:value (getf control-record :create-value)))
|
||||||
(t nil))))
|
(t nil))))
|
||||||
(when control
|
(when control
|
||||||
(setf (attribute control "data-clog-type") control-type-name))
|
(setf (attribute control "data-clog-type") control-type-name)
|
||||||
|
(when (getf control-record :setup)
|
||||||
|
(funcall (getf control-record :setup) control control-record)))
|
||||||
control))
|
control))
|
||||||
|
|
||||||
(defun drop-new-control (app content data next-id &key win)
|
(defun drop-new-control (app content data next-id &key win)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue