Interface sap.ui.core.IFormContentModule: sap/ui/core/library


Marker interface for controls that can be used as content of sap.ui.layout.form.Form or sap.ui.layout.form.SimpleForm.

If the control's width must not be adjusted by the Form control to meet the cell's width, the control must implement the getFormDoNotAdjustWidth function and return true.


Since: 1.48.0.
Method Summary
sap.ui.core.IFormContent.getFormDoNotAdjustWidth()In the Form control all content controls are positioned on a grid cell base.
Method Detail
sap.ui.core.IFormContent.getFormDoNotAdjustWidth(): boolean
In the Form control all content controls are positioned on a grid cell base. By default the controls use the full width of the used grid cell. But for some controls (like image controls), this is not the desired behavior. In this case the control must keep its original width.
Returns:
booleantrue if the Form is not allowed to adjust the width of the control to use the cell's width
Since:
1.48.0