Skip to content

five-on-it / apps/client/src/ui/studio/Inspector / InspectorProps

Interface: InspectorProps ​

Defined in: apps/client/src/ui/studio/Inspector.tsx:32

What the inspector is given.

Properties ​

children? ​

optional children?: ReactNode

Defined in: apps/client/src/ui/studio/Inspector.tsx:43

What the page adds after the fields.


element ​

element: Record<string, unknown>

Defined in: apps/client/src/ui/studio/Inspector.tsx:35


keep? ​

optional keep?: string

Defined in: apps/client/src/ui/studio/Inspector.tsx:41

Why it cannot be deleted, when it cannot (the spawn: a city needs one).


onDelete? ​

optional onDelete?: () => void

Defined in: apps/client/src/ui/studio/Inspector.tsx:39

Returns ​

void


schema ​

schema: Schema | undefined

Defined in: apps/client/src/ui/studio/Inspector.tsx:34

The element's schema (an item of its list's, or the spawn's).


title? ​

optional title?: string

Defined in: apps/client/src/ui/studio/Inspector.tsx:37

What it is, as the heading says it (Road quay).

Methods ​

onChange() ​

onChange(element): void

Defined in: apps/client/src/ui/studio/Inspector.tsx:38

Parameters ​

element ​

Record<string, unknown>

Returns ​

void