docs

sap.ui.model.type.String

The String data type represents a string.

The source value (value given in the model) must be given as a string and is transformed into the type of the bound control property as follows:

The string type does not have any format options.

Example how a String type can be initialized:

// "TypeString" required from module "sap/ui/model/type/String"

// The source value is given as string. The length of the string must not be greater than 5.
var oType = new TypeString(null, {maxLength: 5});

The String type supports the following validation constraints:

For more information, see API Reference: sap.ui.model.type.String.