UNPKG

@openui5/sap.m

Version:

OpenUI5 UI Library sap.m

45 lines (39 loc) 1.21 kB
/*! * OpenUI5 * (c) Copyright 2026 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['sap/m/semantic/SemanticButton'], function(SemanticButton) { "use strict"; /** * Constructor for a new MainAction. * @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 MainAction button has default semantic-specific properties and is * eligible for aggregation content of a {@link sap.m.semantic.SemanticPage}. * * @extends sap.m.semantic.SemanticButton * * @author SAP SE * @version 1.146.0 * * @constructor * @public * @since 1.30.0 * @alias sap.m.semantic.MainAction */ var MainAction = SemanticButton.extend("sap.m.semantic.MainAction", /** @lends sap.m.semantic.MainAction.prototype */ { metadata: { library : "sap.m", properties : { /** * Button text */ text: {type: "string", group: "Misc", defaultValue: null} } } }); return MainAction; });