@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
34 lines (30 loc) • 859 B
JavaScript
/*!
* 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/ui/base/DataType"], function(DataType) {
"use strict";
/**
* Types of image size and position that determine how an image fits in the {@link sap.m.Avatar} control area.
*
* @enum {string}
* @alias sap.m.AvatarImageFitType
* @public
* @since 1.73
*/
var AvatarImageFitType = {
/**
* The image is scaled to be large enough so that the control area is completely covered.
* @public
*/
Cover: "Cover",
/**
* The image is scaled to the largest size so that both its width and height can fit in the control area.
* @public
*/
Contain: "Contain"
};
DataType.registerEnum("sap.m.AvatarImageFitType", AvatarImageFitType);
return AvatarImageFitType;
});