Class sap.ui.commons.form.SimpleFormModule: sap/ui/commons/form/SimpleForm
Use the SimpleForm to create a form based on title, label and fields that are stacked in the content aggregation. Add Title to start a new FormContainer(Group). Add Label to start a new row in the container. Add Input/Display controls as needed. Use LayoutData to influence the layout for special cases in the Input/Display controls.
Deprecated API:Since version 1.16.0. moved to sap.ui.layout library. Please use this one.
Since: 1.12.
Constructor Summary
Events borrowed from class sap.ui.core.Control
Events borrowed from class sap.ui.base.ManagedObject
Method Summary
sap.ui.commons.form.SimpleForm.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.commons.form.SimpleForm with name
sClassName
and enriches it with the information contained in oClassInfo
.sap.ui.commons.form.SimpleForm.getMetadata()Returns a metadata object for class sap.ui.commons.form.SimpleForm.
Methods borrowed from class sap.ui.layout.form.SimpleForm
addAriaLabelledBy, addContent, destroyContent, destroyTitle, destroyToolbar, getAdjustLabelSpan, getAriaLabelledBy, getBackgroundDesign, getBreakpointL, getBreakpointM, getBreakpointXL, getColumnsL, getColumnsM, getColumnsXL, getContent, getEditable, getEmptySpanL, getEmptySpanM, getEmptySpanS, getEmptySpanXL, getLabelMinWidth, getLabelSpanL, getLabelSpanM, getLabelSpanS, getLabelSpanXL, getMaxContainerCols, getMinWidth, getSingleContainerFullSize, getTitle, getToolbar, getWidth, indexOfContent, insertContent, removeAllAriaLabelledBy, removeAllContent, removeAriaLabelledBy, removeContent, setAdjustLabelSpan, setBackgroundDesign, setBreakpointL, setBreakpointM, setBreakpointXL, setColumnsL, setColumnsM, setColumnsXL, setEditable, setEmptySpanL, setEmptySpanM, setEmptySpanS, setEmptySpanXL, setLabelMinWidth, setLabelSpanL, setLabelSpanM, setLabelSpanS, setLabelSpanXL, setMaxContainerCols, setMinWidth, setSingleContainerFullSize, setTitle, setToolbar, setWidth
Methods borrowed from class sap.ui.core.Control
addStyleClass, allowTextSelection, attachBrowserEvent, attachValidateFieldGroup, checkFieldGroupIds, clone, detachBrowserEvent, detachValidateFieldGroup, fireValidateFieldGroup, getAccessibilityInfo, getBusy, getBusyIndicatorDelay, getControlsByFieldGroupId, getFieldGroupIds, getIdForLabel, getRenderer, getVisible, hasStyleClass, invalidate, isBusy, onAfterRendering, onBeforeRendering, placeAt, removeStyleClass, rerender, setBusy, setBusyIndicatorDelay, setFieldGroupIds, setVisible, toggleStyleClass, triggerValidateFieldGroup
Methods borrowed from class sap.ui.core.Element
$, addCustomData, addDependent, addEventDelegate, applyFocusInfo, bindElement, data, destroy, destroyCustomData, destroyDependents, destroyLayoutData, destroyTooltip, enhanceAccessibilityState, exit, findElements, fireEvent, focus, getCustomData, getDependents, getDomRef, getElementBinding, getFocusDomRef, getFocusInfo, getInterface, getLayoutData, getMetadata, getTooltip, getTooltip_AsString, getTooltip_Text, indexOfCustomData, indexOfDependent, init, insertCustomData, insertDependent, prop, removeAllCustomData, removeAllDependents, removeCustomData, removeDependent, removeEventDelegate, setLayoutData, setTooltip, toString, unbindElement
Methods borrowed from class sap.ui.base.ManagedObject
addAggregation, addAssociation, applySettings, attachFormatError, attachModelContextChange, attachParseError, attachValidationError, attachValidationSuccess, bindAggregation, bindContext, bindObject, bindProperty, destroyAggregation, detachFormatError, detachModelContextChange, detachParseError, detachValidationError, detachValidationSuccess, findAggregatedObjects, fireFormatError, fireModelContextChange, fireParseError, fireValidationError, fireValidationSuccess, getAggregation, getAssociation, getBinding, getBindingContext, getBindingInfo, getBindingPath, getEventingParent, getId, getModel, getObjectBinding, getOriginInfo, getParent, getProperty, hasModel, indexOfAggregation, insertAggregation, isBound, isInvalidateSuppressed, isTreeBinding, propagateMessages, removeAggregation, removeAllAggregation, removeAllAssociation, removeAssociation, setAggregation, setAssociation, setBindingContext, setModel, setProperty, unbindAggregation, unbindContext, unbindObject, unbindProperty, validateAggregation, validateProperty
Methods borrowed from class sap.ui.base.EventProvider
Constructor Detail
new sap.ui.commons.form.SimpleForm(sId?, mSettings?)
Constructor for a new form/SimpleForm.
Parameters:
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
- Deprecated:
- Since version 1.16.0. moved to sap.ui.layout library. Please use this one.
Method Detail
sap.ui.commons.form.SimpleForm.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.commons.form.SimpleForm with name
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.layout.form.SimpleForm.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
sap.ui.commons.form.SimpleForm.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.commons.form.SimpleForm.
Returns:
{sap.ui.base.Metadata} | Metadata object describing this class |
getLayout(): sap.ui.commons.form.SimpleFormLayout
Getter for property
layout
. The FormLayout that is used to render the SimpleForm Default value is ResponsiveLayout
- Since:
- 1.14
Returns:
{sap.ui.commons.form.SimpleFormLayout} | the value of property layout |
setLayout(oLayout): sap.ui.commons.form.SimpleForm
Setter for property
layout
. Default value is ResponsiveLayout
Parameters:
{sap.ui.commons.form.SimpleFormLayout} | oLayout | new value for property layout |
- Since:
- 1.14
Returns:
{sap.ui.commons.form.SimpleForm} | this to allow method chaining |