Class sap.m.ActionSelectModule: sap/m/ActionSelect
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
Events borrowed from class sap.m.Select
Events borrowed from class sap.ui.core.Control
Events borrowed from class sap.ui.base.ManagedObject
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
.getButtons()Returns array of IDs of the elements which are the current targets of the association
buttons
.Methods borrowed from class sap.m.Select
addAriaLabelledBy, addItem, attachChange, bindItems, close, createPicker, destroyItems, detachChange, fireChange, getAccessibilityInfo, getAriaLabelledBy, getAutoAdjustWidth, getEnabled, getEnabledItems, getFirstItem, getForceSelection, getIcon, getItemAt, getItemByKey, getItems, getLastItem, getMaxWidth, getName, getSelectedItem, getSelectedItemId, getSelectedKey, getTextAlign, getTextDirection, getType, getWidth, indexOfItem, insertItem, isOpen, open, removeAllAriaLabelledBy, removeAllItems, removeAriaLabelledBy, removeItem, setAutoAdjustWidth, setEnabled, setForceSelection, setIcon, setMaxWidth, setName, setSelectedItem, setSelectedItemId, setSelectedKey, setTextAlign, setTextDirection, setType, setWidth, unbindItems
Methods borrowed from class sap.ui.core.Control
addStyleClass, allowTextSelection, attachBrowserEvent, attachValidateFieldGroup, checkFieldGroupIds, clone, detachBrowserEvent, detachValidateFieldGroup, fireValidateFieldGroup, 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.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. |