Class sap.m.ActionSelectModule: sap/m/ActionSelect

extends Select

The ActionSelect control provides a list of predefined items that allows end users to choose options and additionally trigger some actions.


Since: 1.16.
Constructor Summary
new sap.m.ActionSelect(sId?, mSettings?)Constructor for a new ActionSelect.
Events borrowed from class sap.m.Select
Events borrowed from class sap.ui.core.Control
Method Summary
sap.m.ActionSelect.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.ActionSelect with name sClassName and enriches it with the information contained in oClassInfo.
sap.m.ActionSelect.getMetadata()Returns a metadata object for class sap.m.ActionSelect.
addButton(vButton)Adds some button into the association buttons.
getButtons()Returns array of IDs of the elements which are the current targets of the association buttons.
removeAllButtons()Remove all buttons from the ActionSelect.
removeButton(vButton)Button to be removed from the ActionSelect content.
Constructor Detail
new sap.m.ActionSelect(sId?, mSettings?)
Constructor for a new ActionSelect.

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:

    In addition, all settings applicable to the base type sap.m.Select 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.ActionSelect.extend(sClassName, oClassInfo?, FNMetaImpl?): function
    Creates a new subclass of class sap.m.ActionSelect 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.Select.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.ActionSelect.getMetadata(): sap.ui.base.Metadata
    Returns a metadata object for class sap.m.ActionSelect.
    Returns:
    {sap.ui.base.Metadata} Metadata object describing this class
    addButton(vButton): sap.m.ActionSelect
    Adds some button into the association buttons.
    Parameters:
    {string|sap.m.Button}vButton the buttons to add; if empty, nothing is inserted
    Returns:
    {sap.m.ActionSelect} Reference to this in order to allow method chaining
    getButtons(): sap.m.Button[]
    Returns array of IDs of the elements which are the current targets of the association buttons.
    Returns:
    {sap.m.Button[]}
    removeAllButtons(): string[]
    Remove all buttons from the ActionSelect.
    Returns:
    {string[]} An array with the ids of the removed elements (might be empty).
    removeButton(vButton): string
    Button to be removed from the ActionSelect content.
    Parameters:
    {int|string|sap.m.Button}vButton The button to remove or its index or id.
    Returns:
    {string} The id of the removed button or null.