Design change: transformer of non-multi input-fields get two
arguments: the input-field *and* the binding value (not only the binding value) Rational: (a) transformers of non-multi input-fields can now access the attribute field of the input-field record, (b) there is no real reason why to treat multi and non-multi input-fields differently in respect to their transformer arguments (keep design simple). Updates of current surflets only necessary if they create their own non-multi input-fields (with make-input-field). Example surlfets calculate.scm and calculate-cb.scm updated as well as standard HTML input-fields provided by the SUrflets.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
(let ((name (generate-input-field-name "operator")))
|
||||
(make-input-field
|
||||
name
|
||||
(lambda (operator-string)
|
||||
(lambda (input-field operator-string)
|
||||
(cond
|
||||
((assoc operator-string *operator-alist*) =>
|
||||
(lambda (a) a))
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
(let ((name (generate-input-field-name "operator")))
|
||||
(make-input-field
|
||||
name "operator"
|
||||
(lambda (operator-string)
|
||||
(lambda (input-field operator-string)
|
||||
(let ((operator (assoc operator-string *operator-alist*)))
|
||||
(if operator
|
||||
operator
|
||||
|
||||
Reference in New Issue
Block a user