Skip to content

rune-langium / visual-editor/src / EnumValueRowProps

Interface: EnumValueRowProps ​

Defined in: packages/visual-editor/src/components/editors/EnumValueRow.tsx:35

Extends ​

  • InspectorRowProps

Properties ​

PropertyTypeDescriptionInherited fromDefined in
disabled?booleanWhether the row is disabled.-packages/visual-editor/src/components/editors/EnumValueRow.tsx:53
displayNamestringLast-committed display name (used as diff anchor in callbacks).-packages/visual-editor/src/components/editors/EnumValueRow.tsx:39
indexnumberIndex position of this member in the useFieldArray.-packages/visual-editor/src/components/editors/EnumValueRow.tsx:43
isOverride?booleanWhether 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
namestringLast-committed value name (used as oldName diff anchor in callbacks).-packages/visual-editor/src/components/editors/EnumValueRow.tsx:37
nodeIdstringNode ID of the parent Enum — forwarded to callbacks for store dispatch.-packages/visual-editor/src/components/editors/EnumValueRow.tsx:41
onRemove(nodeId, valueName) => voidRemove this enum value.-packages/visual-editor/src/components/editors/EnumValueRow.tsx:49
onRename?(name) => voidOptional name-only commit using the host's current canonical member identity.-packages/visual-editor/src/components/editors/EnumValueRow.tsx:47
onReorder(fromIndex, toIndex) => voidReorder (drag) callback; fromIndex → toIndex.-packages/visual-editor/src/components/editors/EnumValueRow.tsx:51
onRevert?() => voidCallback to revert this override, restoring the inherited value.-packages/visual-editor/src/components/editors/EnumValueRow.tsx:57
onSelect?() => void-InspectorRowProps.onSelectpackages/visual-editor/src/components/editors/inspector/inspector-row.ts:12
onUpdate(nodeId, oldName, newName, displayName?) => voidCommit value name/displayName changes to the graph.-packages/visual-editor/src/components/editors/EnumValueRow.tsx:45
selected?boolean-InspectorRowProps.selectedpackages/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

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.