Inline editing handlers (Week 2): per-field edit widget, update, cancel.
Inline editing handlers (Week 2): per-field edit widget, update, cancel.
(cancel-inline-edit-handler admin-service schema-provider _config)Handler for GET /:entity/:id/:field/cancel - cancels inline edit.
Returns the original cell HTML without changes.
Handler for GET /:entity/:id/:field/cancel - cancels inline edit. Returns the original cell HTML without changes.
(inline-edit-widget-handler admin-service schema-provider _config)Handler for GET /:entity/:id/:field/edit - returns inline edit form.
Returns HTMX fragment with form widget for editing a single field.
Handler for GET /:entity/:id/:field/edit - returns inline edit form. Returns HTMX fragment with form widget for editing a single field.
(parse-field-value value field-config)Parse a single field value from string to appropriate type.
Helper function for inline editing - extracts type conversion logic from parse-form-params.
Args: value: String value from form field-config: Field configuration map
Returns: Typed value or nil
Parse a single field value from string to appropriate type. Helper function for inline editing - extracts type conversion logic from parse-form-params. Args: value: String value from form field-config: Field configuration map Returns: Typed value or nil
(update-field-handler admin-service schema-provider _config)Handler for PATCH /:entity/:id/:field - updates single field.
Validates and updates single field, returns updated cell HTML.
Handler for PATCH /:entity/:id/:field - updates single field. Validates and updates single field, returns updated cell HTML.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |