Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 778 Bytes

sap-ui-model-type-boolean-91f2f93.md

File metadata and controls

23 lines (14 loc) · 778 Bytes

sap.ui.model.type.Boolean

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:

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

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