PropertyConfig
This configuration contains all configurations for the given property type on the table.
Configuration methods
SetDisplayName
Sets the title displayed in the table header and edit dialog.
Parameters:
displayName
: The display name for the property.
Returns:
PropertyConfigurator<TProp>
List
Determines if the property should appear in the table, if not the property is also set to be not searchable.
Parameters:
list
: A boolean value to set if the property should appear in the table.
Returns:
PropertyConfigurator<TProp>
IsSortable
Determines if the table can be sorted by the property.
Parameters:
sortable
: A boolean value to set if the property is sortable.
Returns:
PropertyConfigurator<TProp>
IsSearchable
Determines if the property get taken into account for search results.
Parameters:
searchable
: A boolean value to set if the property is searchable.
Returns:
PropertyConfigurator<TProp>
SetDisplayedProperty
Determines if the value that should be displayed instead of the string representation of the type.
Type Parameters:
TInnerProp
: The inner property type to display.
Parameters:
propertyExpression
: The expression to determine the property.
Returns:
PropertyConfigurator<TProp>
Format (Synchronous)
Determines the value that's displayed in the admin UI.
Parameters:
formatter
: The function to format the value.
Returns:
PropertyConfigurator<TProp>
See Also: SetDisplayedProperty
Format (Asynchronous)
Determines the value that's displayed in the admin UI.
Parameters:
formatter
: The function to format the value.
Returns:
PropertyConfigurator<TProp>
FormatEach (Synchronous)
Determines the value that's displayed for each entry in the list.
Parameters:
formatter
: The function to format the value for each entry.
Returns:
PropertyConfigurator<TProp>
FormatEach (Asynchronous)
Determines the value that's displayed for each entry in the list.
Parameters:
formatter
: The function to format the value for each entry.
Returns:
PropertyConfigurator<TProp>
SetParser (Synchronous)
Determines the function used for parsing the value provided in the editor dialog to the actual property value.
Parameters:
parser
: The function to parse the value.
Returns:
PropertyConfigurator<TProp>
SetParser (Asynchronous)
Determines the function used for parsing the value provided in the editor dialog to the actual property value.
Parameters:
parser
: The function to parse the value.
Returns:
PropertyConfigurator<TProp>
SetEditable
Determines if the value can be edited in the admin UI. If true, the value can still be initially set, but not modified.
Parameters:
editable
: A boolean value to set if the property is editable.
Returns:
PropertyConfigurator<TProp>
SetCreatable
Determines if the initial value can be edited in the admin UI. If true the value will not be visible in the create dialog.
Parameters:
creatable
: A boolean value to set if the property is creatable.
Returns:
PropertyConfigurator<TProp>
DisplayValue
Determines if the value should be displayed in the admin UI (useful for secrets like passwords etc.).
Parameters:
display
: A boolean value to set if the property value is displayed.
Returns:
PropertyConfigurator<TProp>
IsTextArea
Determines if the admin UI should use a text area for modifying the value.
Parameters:
textField
: A boolean value to set if the property is a text area.
Returns:
PropertyConfigurator<TProp>
SetTextAreaRows
Determines the initial size of the text area field.
Parameters:
rows
: The number of rows for the text area.
Returns:
PropertyConfigurator<TProp>
SetValidator (Synchronous)
Determines the validator used for the property value before saving.
Parameters:
validator
: The function to validate the property value.
Returns:
PropertyConfigurator<TProp>
SetValidator (Asynchronous)
Determines the validator used for the property value before saving.
Parameters:
validator
: The function to validate the property value.
Returns:
PropertyConfigurator<TProp>
SetOrderIndex
Determines the order index for the property in the admin UI.
Parameters:
index
: The order index for the property.
Returns:
PropertyConfigurator<TProp>
See Also: SetOrderIndex
SetDisplayLength
Sets the maximum character length displayed in the admin UI (not in the editor dialog).
Parameters:
maxLength
: The maximum length of characters to be displayed.
Returns:
PropertyConfigurator<TProp>
ForceRelation
Forces a property to be treated as a relation.
Parameters:
isEnumerable
: Determines if it is possible to assign multiple objects to the property.isRequired
: Determines if the property is nullable.
Returns:
PropertyConfigurator<TProp>