UNPKG

@openui5/sap.m

Version:

OpenUI5 UI Library sap.m

47 lines (41 loc) 1.69 kB
/*! * OpenUI5 * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['sap/m/semantic/SemanticSelect'], function(SemanticSelect) { "use strict"; /** * Constructor for a new FilterSelect. * @param {string} [sId] ID for the new control, generated automatically if no ID is given * @param {object} [mSettings] Optional initial settings for the new control: a map/JSON-object with initial property values, event listeners etc. for the new object * * @class * A FilterSelect is a {@link sap.m.Select} control enhanced with styling according to the semantics of a common "Filter" action. * * A FilterSelect cannot be used independently but only as aggregation content of a {@link sap.m.semantic.SemanticPage}. * * The filtering options should be added to the <code>items</code> aggregation of {@link sap.m.semantic.FilterSelect} and will be displayed as a pop-up list with support for single-item selection. * If this simple popup list is not sufficient for your use case, you can implement your own custom dialog by using {@link sap.m.semantic.FilterAction} to trigger the dialog opening. * * @extends sap.m.semantic.SemanticSelect * @implements sap.m.semantic.IFilter * * @author SAP SE * @version 1.117.4 * * @constructor * @public * @since 1.30.0 * @alias sap.m.semantic.FilterSelect */ var FilterSelect = SemanticSelect.extend("sap.m.semantic.FilterSelect", /** @lends sap.m.semantic.FilterSelect.prototype */ { metadata: { library : "sap.m", interfaces : [ "sap.m.semantic.IFilter" ] } }); return FilterSelect; });