Sha256: 58482091f29d5405f5576a329127ca51297d540fbc73c2c4d8637afeb452e40a

Contents?: true

Size: 1.72 KB

Versions: 3

Compression:

Stored size: 1.72 KB

Contents

/*!
 * UI development toolkit for HTML5 (OpenUI5)
 * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */

/**
 * Base Class for all typed cards
 */
sap.ui.define(['jquery.sap.global', 'sap/ui/core/UIComponent'],
    function (jQuery, UIComponent) {
        "use strict";

        var CardComponent = UIComponent.extend("sap.f.cards.CardComponent", {
            constructor: function (mSettings) {
                UIComponent.apply(this, arguments);
                this._mSettings = mSettings;
            },
            metadata: {
                properties: {
                    verticalSize: {
                        type: "int"
                    },
                    horizontalSize: {
                        type: "int"
                    }
                }
            }
        });

        CardComponent.prototype.applySettings = function () {
            UIComponent.prototype.applySettings.apply(this, arguments);
        };

        CardComponent.prototype.createContent = function () {
            //var mSettings = this._mSettings,
            //mCards = this._getManifestEntry("sap.cards");
            return UIComponent.prototype.createContent.apply(this, arguments);
        };
        /**
         * Renders the root control of the UIComponent.
         *
         * @param {sap.ui.core.RenderManager} oRenderManager a RenderManager instance
         * @public
         */
        UIComponent.prototype.render = function (oRenderManager) {
            var oControl = this.getRootControl();
            if (oControl && oRenderManager) {
                oRenderManager.renderControl(oControl);
            }
        };

        return CardComponent;

    });

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fiveapples-0.0.7 lib/openui5-runtime-1.60.23/resources/sap/f/cards/CardComponent-dbg.js
fiveapples-0.0.6 lib/openui5-runtime-1.60.23/resources/sap/f/cards/CardComponent-dbg.js
fiveapples-0.0.5 lib/openui5-runtime-1.60.23/resources/sap/f/cards/CardComponent-dbg.js