@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
51 lines (44 loc) • 1.62 kB
JavaScript
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.m.ToolbarSpacer.
sap.ui.define(['./library', 'sap/ui/core/Control', './ToolbarSpacerRenderer'],
function(library, Control, ToolbarSpacerRenderer) {
"use strict";
/**
* Constructor for a new <code>ToolbarSpacer</code>.
*
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
* @param {object} [mSettings] Initial settings for the new control
*
* @class
* Adds horizontal space between the items used within a {@link sap.m.Toolbar}.
*
* <b>Note:</b> <code>ToolbarSpacer</code> should not be used together with {@link sap.m.ToolbarLayoutData}.
*
* @extends sap.ui.core.Control
*
* @author SAP SE
* @version 1.60.39
*
* @constructor
* @public
* @since 1.16
* @alias sap.m.ToolbarSpacer
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
*/
var ToolbarSpacer = Control.extend("sap.m.ToolbarSpacer", /** @lends sap.m.ToolbarSpacer.prototype */ { metadata : {
library : "sap.m",
properties : {
/**
* Defines the width of the horizontal space.
* Note: Empty("") value makes the space flexible which means it covers the remaining space between toolbar items.
* This feature can be used to push next item to the edge of the toolbar.
*/
width : {type : "sap.ui.core.CSSSize", group : "Appearance", defaultValue : ''}
}
}});
return ToolbarSpacer;
});