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