diff --git a/documentation/GUIDE__Development.md b/documentation/GUIDE__Development.md index 78b91dec..88511f0a 100644 --- a/documentation/GUIDE__Development.md +++ b/documentation/GUIDE__Development.md @@ -53,7 +53,79 @@ You are not working in a vacuum. Coordinate with the Backend Agent via MCP tools | `documentation/PROJECT__AE_Events_Launcher_Native_integration.md` | Electron/Launcher reference | | `tests/README.md` | Playwright test guide — shared helpers, hard-won lessons, demo IDs | -## 6. URL Parameters +## 6. Inline Field Editing — `element_ae_obj_field_editor_v3` + +The standard component for single-field inline editing throughout the platform. Wraps a `PATCH /v3/crud/{obj_type}/{obj_id}` call behind a click-to-edit UI that respects `$ae_loc.edit_mode`. + +```svelte +import Element_ae_obj_field_editor_v3 from '$lib/elements/element_ae_obj_field_editor_v3.svelte'; +``` + +### Basic usage — text field with custom display + +Wrap the display content in the default snippet. The component renders it in view mode and swaps in the input on edit. + +```svelte + events_func.load_ae_obj_id__event_session({ api_cfg: $ae_api, event_session_id: session.id })} +> +

{session.name}

+
+``` + +### Field types + +| `field_type` | Input rendered | +| --- | --- | +| `text` (default) | `` — Enter key saves | +| `textarea` | `