Interface IAddDescriptorAtKey
-
public interface IAddDescriptorAtKeySub builder for configuring the property added viaValueDescriptorFormModelBuilder.addDescriptorAtKey(IValueAccessor, String, IValueDescriptor)- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAddDescriptorAtKeydescriptionKey(String description)Overrides the label for the field.IAddDescriptorAtKeydescriptionLiteral(String description)Overrides the description for the field.IAddDescriptorAtKeylabelKey(String label)Overrides the label for the field.IAddDescriptorAtKeylabelLiteral(String label)Overrides the label for the field.IAddDescriptorAtKeyrequired(boolean required)Sets whether the field is required.
-
-
-
Method Detail
-
descriptionKey
IAddDescriptorAtKey descriptionKey(String description)
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
IAddDescriptorAtKey descriptionLiteral(String description)
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
IAddDescriptorAtKey labelKey(String label)
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
IAddDescriptorAtKey labelLiteral(String label)
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
IAddDescriptorAtKey required(boolean 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.
-
-