Skip to content

@serenity-is/corelib / PropertyGridOptions

Interface: PropertyGridOptions

Defined in: src/ui/widgets/propertygrid.tsx:1133

Options for configuring a PropertyGrid.

Properties

deferInit?

optional deferInit: boolean

Defined in: src/ui/widgets/propertygrid.tsx:1149

Asks the editors whose classes support both (see Widget.isDeferredInit) to defer their initialization (true), e.g. to load their lookups asynchronously, which a form that defers its own sets, or to initialize in their constructors (false); PropertyGrid.getEditorsLoading waits for the ones that defer it.


idPrefix?

optional idPrefix: string

Defined in: src/ui/widgets/propertygrid.tsx:1135

Optional id prefix used for field element ids.


items

items: PropertyItem[]

Defined in: src/ui/widgets/propertygrid.tsx:1137

The property items to render as fields.


localTextPrefix?

optional localTextPrefix: string

Defined in: src/ui/widgets/propertygrid.tsx:1139

Optional local text prefix used to localize captions and hints.


mode?

optional mode: PropertyGridMode

Defined in: src/ui/widgets/propertygrid.tsx:1143

The grid mode; defaults to PropertyGridMode.insert.


value?

optional value: any

Defined in: src/ui/widgets/propertygrid.tsx:1141

Optional initial value to load into the editors.