rune-langium / visual-editor/src / EnumValueRowProps
Interface: EnumValueRowProps
Defined in: packages/visual-editor/src/components/editors/EnumValueRow.tsx:26
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
disabled? | boolean | Whether the row is disabled. | packages/visual-editor/src/components/editors/EnumValueRow.tsx:42 |
displayName | string | Last-committed display name (used as diff anchor in callbacks). | packages/visual-editor/src/components/editors/EnumValueRow.tsx:30 |
index | number | Index position of this member in the useFieldArray. | packages/visual-editor/src/components/editors/EnumValueRow.tsx:34 |
isOverride? | boolean | Whether this local value overrides an inherited value with the same name. | packages/visual-editor/src/components/editors/EnumValueRow.tsx:44 |
name | string | Last-committed value name (used as oldName diff anchor in callbacks). | packages/visual-editor/src/components/editors/EnumValueRow.tsx:28 |
nodeId | string | Node ID of the parent Enum — forwarded to callbacks for store dispatch. | packages/visual-editor/src/components/editors/EnumValueRow.tsx:32 |
onRemove | (nodeId, valueName) => void | Remove this enum value. | packages/visual-editor/src/components/editors/EnumValueRow.tsx:38 |
onReorder | (fromIndex, toIndex) => void | Reorder (drag) callback; fromIndex → toIndex. | packages/visual-editor/src/components/editors/EnumValueRow.tsx:40 |
onRevert? | () => void | Callback to revert this override, restoring the inherited value. | packages/visual-editor/src/components/editors/EnumValueRow.tsx:46 |
onUpdate | (nodeId, oldName, newName, displayName?) => void | Commit value name/displayName changes to the graph. | packages/visual-editor/src/components/editors/EnumValueRow.tsx:36 |