Forms
clog-moldable-inspector
You can use input elements in views, and retrieve their values
in the code run by action and eval buttons. Here are some examples.
(let ((text-cell (hvr:input :label "Text: " :type :text)))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref text-cell))))
(let ((search-cell (hvr:input :label "Search: " :type :search)))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref search-cell))))
(let ((number-cell (hvr:input :label "Number: " :type :number)))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref number-cell))))
(let ((range-cell (hvr:input :label "Range: " :type :range :min "1" :max "10")))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref range-cell))))
(let ((email-cell (hvr:input :label "E-mail: " :type :email)))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref email-cell))))
(let ((pwd-cell (hvr:input :label "Password: " :type :password)))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref pwd-cell))))
(let ((date-cell (hvr:input :label "Date: " :type :date)))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref date-cell))))
(let ((datetime-cell (hvr:input :label "Date/time: " :type :datetime-local)))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref datetime-cell))))
(let ((color-cell (hvr:input :label "Color: " :type :color)))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref color-cell))))
(let ((checkbox-cell (hvr:checkboxes '(("One" . "one")
("Two" . "two"))
:label "Select your choices:")))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref checkbox-cell))))
(let ((radio-cell (hvr:radio-buttons '(("One" . "one")
("Two" . "two"))
:label "Make your choice:")))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref radio-cell))))
(let ((select-cell (hvr:select '(("One" . "one")
("Two" . "two"))
:label "Make your choice:")))
(hv:eval-button "Get value" (hv:thunk (lwcells:cell-ref select-cell))))