Interface

PropertyOptions

PropertyOptions

Members

Array.<object>

# availableValues Optional

If options should be limited to finite set. After setting this in the UI you will see select box instead of the input

Properties:
Name Type Description
] string
] string

View Source admin-bro/src/backend/decorators/property-options.interface.ts, line 81

object

# components Optional

List of possible overridden components for given property.

Properties:
Name Type Attributes Description
show string <optional>
list string <optional>
edit string <optional>
filter string <optional>

View Source admin-bro/src/backend/decorators/property-options.interface.ts, line 32

object

# custom Optional

Custom properties passed to the frontend in PropertyJSON

Properties:
Name Type Description
{...} boolean | string | number | Date

View Source admin-bro/src/backend/decorators/property-options.interface.ts, line 90

boolean

# isDisabled Optional

Whether given property should be editable or not.

View Source admin-bro/src/backend/decorators/property-options.interface.ts, line 97

boolean

# isId Optional

Indicates if property should be treated as an ID

View Source admin-bro/src/backend/decorators/property-options.interface.ts, line 54

boolean

# isTitle Optional

Of given property should be treated as an "title property". Title property is "clickable" when user sees the record in a list or show views.

View Source admin-bro/src/backend/decorators/property-options.interface.ts, line 60

boolean | object

# isVisible Optional

if given property should be visible. It can be either boolean for all possible views, or you can verify which view in particular should be hidden/shown.

Properties:
Name Type Attributes Description
show boolean <optional>
list boolean <optional>
edit boolean <optional>
filter boolean <optional>

View Source admin-bro/src/backend/decorators/property-options.interface.ts, line 21

string

# label Optional

Human readable label of a property

View Source admin-bro/src/backend/decorators/property-options.interface.ts, line 48

string

# name Optional

Name of the property

View Source admin-bro/src/backend/decorators/property-options.interface.ts, line 75

number

# position Optional

position of the field in a list, title field (isTitle) gets position -1 by default other fields gets position = 100.

View Source admin-bro/src/backend/decorators/property-options.interface.ts, line 67