Interface IAddDescriptorAtKey
public interface IAddDescriptorAtKey
Sub builder for configuring the property added via
ValueDescriptorFormModelBuilder.addDescriptorAtKey(IValueAccessor, String, IValueDescriptor)- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptiondescriptionKey(String description) Overrides the label for the field.descriptionLiteral(String description) Overrides the description for the field.Overrides the label for the field.labelLiteral(String label) Overrides the label for the field.required(boolean required) Sets whether the field is required.
-
Method Details
-
descriptionKey
Overrides the label for the field. Interprets the description as a message key that is localized using the provided localizer.- Parameters:
description- The label for the field.- Returns:
- This builder instance for chaining method calls.
-
descriptionLiteral
Overrides the description for the field. Interprets the description as a literal string that is not localized.- Parameters:
description- The description for the field.- Returns:
- This builder instance for chaining method calls.
-
labelKey
Overrides the label for the field. Interprets the label as a message key that is localized using the provided localizer.- Parameters:
label- The label for the field.- Returns:
- This builder instance for chaining method calls.
-
labelLiteral
Overrides the label for the field. Interprets the label as a literal string that is not localized.- Parameters:
label- The label for the field.- Returns:
- This builder instance for chaining method calls.
-
required
Sets whether the field is required. A non-required field can be removed from the configuration.- Parameters:
required- true if the field is required, false otherwise.- Returns:
- This builder instance for chaining method calls.
-