Liking cljdoc? Tell your friends :D

boundary.admin.shell.http.handlers.inline

Inline editing handlers (Week 2): per-field edit widget, update, cancel.

Inline editing handlers (Week 2): per-field edit widget, update, cancel.
raw docstring

cancel-inline-edit-handlerclj

(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.
sourceraw docstring

inline-edit-widget-handlerclj

(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.
sourceraw docstring

parse-field-valueclj

(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
sourceraw docstring

update-field-handlerclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close