rune-langium / visual-editor/src / EnumValueRowProps
Interface: EnumValueRowProps
Defined in: packages/visual-editor/src/components/editors/EnumValueRow.tsx:35
Extends
InspectorRowProps
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
disabled? | boolean | Whether the row is disabled. | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:53 |
displayName | string | Last-committed display name (used as diff anchor in callbacks). | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:39 |
index | number | Index position of this member in the useFieldArray. | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:43 |
isOverride? | boolean | Whether this local value overrides an inherited value with the same name. | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:55 |
metadataInDetails? | boolean | - | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:63 |
name | string | Last-committed value name (used as oldName diff anchor in callbacks). | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:37 |
nodeId | string | Node ID of the parent Enum — forwarded to callbacks for store dispatch. | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:41 |
onRemove | (nodeId, valueName) => void | Remove this enum value. | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:49 |
onRename? | (name) => void | Optional name-only commit using the host's current canonical member identity. | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:47 |
onReorder | (fromIndex, toIndex) => void | Reorder (drag) callback; fromIndex → toIndex. | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:51 |
onRevert? | () => void | Callback to revert this override, restoring the inherited value. | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:57 |
onSelect? | () => void | - | InspectorRowProps.onSelect | packages/visual-editor/src/components/editors/inspector/inspector-row.ts:12 |
onUpdate | (nodeId, oldName, newName, displayName?) => void | Commit value name/displayName changes to the graph. | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:45 |
selected? | boolean | - | InspectorRowProps.selected | packages/visual-editor/src/components/editors/inspector/inspector-row.ts:11 |
synonymSourceOptions? | SourceRefOption[] | Available synonym source options threaded from EnumForm via PaginatedEnumValues. When non-empty, a synonym sub-section (chips + add-row) appears below the main row. | - | packages/visual-editor/src/components/editors/EnumValueRow.tsx:62 |