Class sap.m.ComboBoxTextFieldModule: sap/m/ComboBoxTextField

extends InputBase
known direct subclasses: ComboBoxBase

The sap.m.ComboBoxTextField.


Since: 1.34.
Constructor Summary
new sap.m.ComboBoxTextField(sId?, mSettings?)Constructor for a new sap.m.ComboBoxTextField.
Events borrowed from class sap.m.InputBase
Events borrowed from class sap.ui.core.Control
Method Summary
sap.m.ComboBoxTextField.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.ComboBoxTextField with name sClassName and enriches it with the information contained in oClassInfo.
sap.m.ComboBoxTextField.getMetadata()Returns a metadata object for class sap.m.ComboBoxTextField.
getMaxWidth()Gets current value of property maxWidth.
getShowButton()Gets current value of property showButton.
getValue()Gets the value.
setMaxWidth(sMaxWidth)Sets a new value for property maxWidth.
setShowButton(bShowButton)Sets a new value for property showButton.
Constructor Detail
new sap.m.ComboBoxTextField(sId?, mSettings?)
Constructor for a new sap.m.ComboBoxTextField.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.

The supported settings are:

  • Properties
  • Aggregations

    In addition, all settings applicable to the base type sap.m.InputBase can be used as well.

    Parameters:
    {string}sId? ID for the new control, generated automatically if no ID is given.
    {object}mSettings? Initial settings for the new control.
    Method Detail
    sap.m.ComboBoxTextField.extend(sClassName, oClassInfo?, FNMetaImpl?): function
    Creates a new subclass of class sap.m.ComboBoxTextField with name sClassName and enriches it with the information contained in oClassInfo.

    oClassInfo might contain the same kind of information as described in sap.m.InputBase.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.m.ComboBoxTextField.getMetadata(): sap.ui.base.Metadata
    Returns a metadata object for class sap.m.ComboBoxTextField.
    Returns:
    {sap.ui.base.Metadata} Metadata object describing this class
    getAccessibilityInfo()
    See:
    {sap.ui.core.Control#getAccessibilityInfo}
    getMaxWidth(): sap.ui.core.CSSSize
    Gets current value of property maxWidth.

    Sets the maximum width of the text field.

    Default value is 100%.

    Returns:
    {sap.ui.core.CSSSize} Value of property maxWidth
    getShowButton(): boolean
    Gets current value of property showButton.

    Indicates whether the dropdown arrow button is shown.

    Default value is true.

    Since:
    1.38
    Returns:
    {boolean} Value of property showButton
    getValue(): string
    Gets the value.

    Default value is an empty string.

    Returns:
    {string} The value of property value.
    setMaxWidth(sMaxWidth): sap.m.ComboBoxTextField
    Sets a new value for property maxWidth.

    Sets the maximum width of the text field.

    When called with a value of null or undefined, the default value of the property will be restored.

    Default value is 100%.

    Parameters:
    {sap.ui.core.CSSSize}sMaxWidth New value for property maxWidth
    Returns:
    {sap.m.ComboBoxTextField} Reference to this in order to allow method chaining
    setShowButton(bShowButton): sap.m.ComboBoxTextField
    Sets a new value for property showButton.

    Indicates whether the dropdown arrow button is shown.

    When called with a value of null or undefined, the default value of the property will be restored.

    Default value is true.

    Parameters:
    {boolean}bShowButton New value for property showButton
    Since:
    1.38
    Returns:
    {sap.m.ComboBoxTextField} Reference to this in order to allow method chaining