Interface: SideEntityPanelProps<M, UserType>
Props used to open a side dialog
Type parameters​
Name | Type |
---|---|
M | any |
UserType | User |
Properties​
callbacks​
• Optional
callbacks: EntityCallbacks
<M
>
This interface defines all the callbacks that can be used when an entity is being created, updated or deleted. Useful for adding your own logic or blocking the execution of the operation
Defined in​
models/side_entity_controller.tsx:61
copy​
• Optional
copy: boolean
Set this flag to true if you want to make a copy of an existing entity
Defined in​
models/side_entity_controller.tsx:26
entityId​
• Optional
entityId: string
Id of the entity, if not set, it means we are creating a new entity
Defined in​
models/side_entity_controller.tsx:21
overrideSchemaRegistry​
• Optional
overrideSchemaRegistry: boolean
Defined in​
models/side_entity_controller.tsx:64
path​
• path: string
Absolute path of the entity
Defined in​
models/side_entity_controller.tsx:16
permissions​
• Optional
permissions: PermissionsBuilder
<M
, UserType
>
Can the elements in this collection be added and edited.
Defined in​
models/side_entity_controller.tsx:43
schema​
• Optional
schema: EntitySchema
<M
> | EntitySchemaResolver
<M
>
Schema representing the entities of this view
Defined in​
models/side_entity_controller.tsx:48
selectedSubpath​
• Optional
selectedSubpath: string
Open the entity with a selected sub-collection view. If the panel for this entity was already open, it is replaced.
Defined in​
models/side_entity_controller.tsx:32
subcollections​
• Optional
subcollections: EntityCollection
<any
, string
, any
>[]
You can add subcollections to your entity in the same way you define the root collections.
Defined in​
models/side_entity_controller.tsx:54
width​
• Optional
width: string
| number
Use this prop to override the width of the side dialog. e.g. "600px"