@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
32 lines (27 loc) • 1.07 kB
JavaScript
/*!
* 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/ui/core/Renderer', './SelectRenderer'],
function(Renderer, SelectRenderer) {
"use strict";
var ActionSelectRenderer = Renderer.extend(SelectRenderer);
/**
* CSS class to be applied to the HTML root element of the ActionSelect control.
*
* @type {string}
*/
ActionSelectRenderer.ACTION_SELECT_CSS_CLASS = "sapMActionSelect";
ActionSelectRenderer.apiVersion = 2;
/**
* Apply a CSS class to the HTML root element of the ActionSelect control.
*
* @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer.
* @param {sap.m.ActionSelect} oActionSelect An object representation of the control that should be rendered.
*/
ActionSelectRenderer.addClass = function(oRm, oActionSelect) {
oRm.class(ActionSelectRenderer.ACTION_SELECT_CSS_CLASS);
};
return ActionSelectRenderer;
}, /* bExport= */ true);