Home > @tridion-sites/models > SingleLineTextFieldDefinition
Represents a single-line text field definition (in a Schema).
Signature:
export declare class SingleLineTextFieldDefinition extends TextFieldDefinition
Extends: TextFieldDefinition
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)({ backendModel, list }) | Constructs a new instance of the SingleLineTextFieldDefinition class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| _backendModel | BackendSingleLineTextFieldDefinition | ||
| defaultValue | string | undefined | ||
| getInternalModel | () => BackendSingleLineTextFieldDefinition | ||
| list | SingleLineTextListDefinition | undefined | List of allowed values | |
| maxLength | number | undefined | Maximum length constraint. | |
| minLength | number | undefined | Minimum length constraint. | |
| pattern | string | undefined | Regular expression pattern to constrain the value. |