Interface: PropertyPreviewProps<T, CustomProps, M>
Type parameters​
Name | Type |
---|---|
T | extends CMSType = any |
CustomProps | any |
M | extends Record <string , any > = Record <string , any > |
Properties​
customProps​
• Optional
customProps: CustomProps
Additional properties set by the developer
Defined in​
lib/src/preview/PropertyPreviewProps.tsx:52
entity​
• Optional
entity: Entity
<M
>
Entity this property refers to
Defined in​
lib/src/preview/PropertyPreviewProps.tsx:57
height​
• Optional
height: number
Max height assigned to the preview, depending on the context. It may be undefined if unlimited.
Defined in​
lib/src/preview/PropertyPreviewProps.tsx:41
onClick​
• Optional
onClick: () => void
Type declaration​
â–¸ (): void
Click handler
Returns​
void
Defined in​
lib/src/preview/PropertyPreviewProps.tsx:30
property​
• property: Property
<T
> | ResolvedProperty
<T
>
Property this display is related to
Defined in​
lib/src/preview/PropertyPreviewProps.tsx:25
propertyKey​
• Optional
propertyKey: string
Name of the property
Defined in​
lib/src/preview/PropertyPreviewProps.tsx:15
size​
• size: PreviewSize
Desired size of the preview, depending on the context.
Defined in​
lib/src/preview/PropertyPreviewProps.tsx:35
value​
• value: T
Current value of the property
Defined in​
lib/src/preview/PropertyPreviewProps.tsx:20
width​
• Optional
width: number
Max height width to the preview, depending on the context. It may be undefined if unlimited.