Reputation: 28665
I have placed a checkbox in my SAPUI5 xml view as follows:
<CheckBox checked="true" editable="false"/>
However, the checkbox is shown as unchecked. Looking at the reference, "checked"
is a boolean field; I cannot see anything wrong in above code.
Reference: https://sapui5.hana.ondemand.com/sdk/test-resources/sap/ui/commons/demokit/CheckBox.html#settings
What's the matter?
Upvotes: 0
Views: 4454
Reputation: 2473
sap.ui.commons.CheckBox uses checked, editable and enabled
sap.m.CheckBox uses selected and enabled
<CheckBox text="{field}" selected="true" enabled="false" />
is it possible you are using sap.m.Checkbox
Upvotes: 4