Files
firecms/website/docs/api/interfaces/previewcomponentprops.md
2021-06-06 13:36:47 +02:00

2.3 KiB

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
previewcomponentprops Interface: PreviewComponentProps<T, CustomProps> PreviewComponentProps 0 null

Type parameters

Name Type
T T = any
CustomProps CustomProps = any

Properties

customProps

Optional customProps: CustomProps

Additional properties set by the developer

Defined in

models/preview_component_props.tsx:47


height

Optional height: number

Max height assigned to the preview, depending on the context. It may be undefined if unlimited.

Defined in

models/preview_component_props.tsx:36


name

Optional name: string

Name of the property

Defined in

models/preview_component_props.tsx:10


onClick

Optional onClick: MouseEventHandler<any>

Click handler

Defined in

models/preview_component_props.tsx:25


property

property: Property<T, any>

Property this display is related to

Defined in

models/preview_component_props.tsx:20


size

size: PreviewSize

Desired size of the preview, depending on the context.

Defined in

models/preview_component_props.tsx:30


value

value: T

Current value of the property

Defined in

models/preview_component_props.tsx:15


width

Optional width: number

Max height width to the preview, depending on the context. It may be undefined if unlimited.

Defined in

models/preview_component_props.tsx:42