PropertyViewProps Interface
Properties of PropertyView React component
Extends
Properties
Name | Type | Description | |
---|---|---|---|
labelElement | React.ReactNode | Property label as a React element | |
valueElement | React.ReactNode | undefined | Property value as a React element | |
valueElementRenderer | () => React.ReactNode | undefined | Render callback for property value. |
Inherited properties
Name | Type | Inherited from | Description |
---|---|---|---|
actionButtonRenderers | ActionButtonRenderer[] | undefined | SharedRendererProps | Array of action button renderers |
alwaysShowEditor | (property: PropertyRecord) => boolean | undefined | SharedRendererProps | Callback to determine which editors should be always visible |
columnInfo | | undefined | SharedRendererProps | Information for styling property grid columns |
columnRatio | number | undefined | SharedRendererProps | Ratio between label and value cells |
isHoverable | boolean | undefined | SharedRendererProps | Indicates that properties have hover effect |
isPropertyEditingEnabled | boolean | undefined | SharedRendererProps | Enables/disables property editing |
isResizeHandleBeingDragged | boolean | undefined | SharedRendererProps | Is resize handle being dragged |
isResizeHandleHovered | boolean | undefined | SharedRendererProps | Is resize handle hovered |
isSelectable | boolean | undefined | SharedRendererProps | Indicates that properties can be selected |
isSelected | boolean | undefined | SharedRendererProps | Controls component selection |
onClick | (property: PropertyRecord, key?: string) => void | undefined | SharedRendererProps | Called when property gets clicked. |
onColumnRatioChanged | (ratio: number) => void | { ratio: number } | undefined | SharedRendererProps | Callback to column ratio changed event |
onContextMenu | (property: PropertyRecord, e: React.MouseEvent<Element, MouseEvent>) => void | undefined | SharedRendererProps | Called to show a context menu for properties |
onResizeHandleDragChanged | (isDragStarted: boolean) => void | undefined | SharedRendererProps | Callback to drag event change |
onResizeHandleHoverChanged | (isHovered: boolean) => void | undefined | SharedRendererProps | Callback to hover event change |
onRightClick | (property: PropertyRecord, key?: string) => void | undefined | SharedRendererProps | Called when property gets right clicked. |
orientation | Orientation | SharedRendererProps | Orientation to use for displaying the property |
propertyRecord | PropertyRecord | SharedRendererProps | PropertyRecord to render |
uniqueKey | string | undefined | SharedRendererProps | Unique string, that identifies this property component. |
width | number | undefined | SharedRendererProps | Width of the whole property element |
Defined in
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.