rune-langium / visual-editor/src / AttributeRowProps
Interface: AttributeRowProps
Defined in: packages/visual-editor/src/components/editors/AttributeRow.tsx:30
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
allNodeIds? | string[] | All loaded graph node IDs for resolving type name to node ID. | packages/visual-editor/src/components/editors/AttributeRow.tsx:54 |
availableTypes | TypeOption[] | Available type options for the TypeSelector. | packages/visual-editor/src/components/editors/AttributeRow.tsx:36 |
committedName | string | Last-committed attribute name (for graph action diffing). | packages/visual-editor/src/components/editors/AttributeRow.tsx:34 |
disabled? | boolean | Whether the form is read-only. | packages/visual-editor/src/components/editors/AttributeRow.tsx:50 |
index | number | Index position of this member in the useFieldArray. | packages/visual-editor/src/components/editors/AttributeRow.tsx:32 |
isOverride? | boolean | Whether this attribute overrides an inherited member. | packages/visual-editor/src/components/editors/AttributeRow.tsx:56 |
onNavigateToNode? | NavigateToNodeCallback | Callback to navigate to a type's graph node. | packages/visual-editor/src/components/editors/AttributeRow.tsx:52 |
onRemove | (index) => void | Remove this attribute by index. | packages/visual-editor/src/components/editors/AttributeRow.tsx:46 |
onReorder | (fromIndex, toIndex) => void | Reorder (drag) callback; fromIndex → toIndex. | packages/visual-editor/src/components/editors/AttributeRow.tsx:48 |
onRevert? | () => void | Callback to revert an override (remove local, restore inherited). | packages/visual-editor/src/components/editors/AttributeRow.tsx:58 |
onUpdate | (index, oldName, newName, typeName, cardinality) => void | Commit attribute changes to the graph. | packages/visual-editor/src/components/editors/AttributeRow.tsx:38 |