@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
53 lines (49 loc) • 1.25 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 the Design Time Metadata for the sap.m.Popover control
sap.ui.define([],
function () {
"use strict";
return {
actions: {
rename: function (oPopover) {
// When a custom header is added the title is not visualized and we do not need a rename action.
if (oPopover.getCustomHeader()) {
return;
}
return {
changeType: "rename",
domRef: function (oPopover) {
return oPopover.getDomRef("title");
}
};
}
},
aggregations: {
content: {
domRef: ":sap-domref > .sapMPopoverCont",
actions: {
move: "moveControls"
}
},
customHeader: {
domRef: ":sap-domref > .sapMPopoverHeader"
},
subHeader: {
domRef: ":sap-domref > .sapMPopoverSubHeader"
},
footer: {
domRef: ":sap-domref > .sapMPopoverFooter"
},
beginButton: {
domRef: ":sap-domref > header.sapMPopoverHeader .sapMBarLeft"
},
endButton: {
domRef: ":sap-domref > header.sapMPopoverHeader .sapMBarRight"
}
}
};
}, /* bExport= */ false);