Show TOC

sap.ui.model.type.BooleanLocate this document in the navigation structure

The Boolean data type represents a string.

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

  • boolean: No transformation needed
  • string: "true" or "X" are interpreted as true, "false" and "" as false

The Boolean type has no format or validation constraint options.

Example how a Boolean type can be initialized:

// The source value is given as boolean.
var oType = new sap.ui.model.type.Boolean();