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

3.4 KiB

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
mapproperty Interface: MapProperty<T, Key> MapProperty 0 null

Type parameters

Name Type
T T = any
Key Key: string = Extract<keyof T, string>

Hierarchy

  • BaseProperty

    MapProperty

Properties

columnWidth

Optional columnWidth: number

Width in pixels of this column in the collection view. If not set the width is inferred based on the other configurations

Inherited from

BaseProperty.columnWidth

Defined in

models/models.ts:446


config

Optional config: MapFieldConfig<T>

Configure how this property field is displayed

Defined in

models/models.ts:634


dataType

dataType: "map"

Overrides

BaseProperty.dataType

Defined in

models/models.ts:614


description

Optional description: string

Property description, always displayed under the field

Inherited from

BaseProperty.description

Defined in

models/models.ts:435


disabled

Optional disabled: boolean | PropertyDisabledConfig

Is this field disabled. When set to true, it gets rendered as a disabled field. You can also specify a configuration for defining the behaviour of disabled properties

Inherited from

BaseProperty.disabled

Defined in

models/models.ts:459


longDescription

Optional longDescription: string

Longer description of a field, displayed under a popover

Inherited from

BaseProperty.longDescription

Defined in

models/models.ts:440


previewProperties

Optional previewProperties: Key[]

Properties that are displayed when as a preview

Defined in

models/models.ts:629


properties

Optional properties: Properties<Key, any>

Record of properties included in this map.

Defined in

models/models.ts:619


readOnly

Optional readOnly: boolean

Is this a read only property. When set to true, it gets rendered as a preview.

Inherited from

BaseProperty.readOnly

Defined in

models/models.ts:452


title

Optional title: string

Property title (e.g. Product)

Inherited from

BaseProperty.title

Defined in

models/models.ts:430


validation

Optional validation: PropertyValidationSchema

Rules for validating this property

Overrides

BaseProperty.validation

Defined in

models/models.ts:624