{"size": 1471, "ext": "js", "max_stars_repo_path": "dist/resources/sap/m/table/ActionItem-dbg.js", "max_stars_repo_name": "fleischr/sapui5-metamask-shoppingcart", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/resources/sap/m/table/ActionItem-dbg.js", "max_issues_repo_name": "fleischr/sapui5-metamask-shoppingcart", "max_issues_repo_issues_event_min_datetime": "2022-02-23T17:30:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-23T02:24:32.000Z", "max_forks_repo_path": "dist/resources/sap/m/table/ActionItem-dbg.js", "max_forks_repo_name": "fleischr/sapui5-metamask-shoppingcart", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 15, "max_forks_count": null, "avg_line_length": 21.3188405797, "max_line_length": 91, "alphanum_fraction": 0.6267845003}
/*!
 * OpenUI5
 * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */
sap.ui.define([
	"sap/m/table/ItemBase"
], function(
	ItemBase
) {
	"use strict";

	/**
	 * Constructor for a new ActionItem.
	 *
	 * @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
	 * This control serves as a menu action item for the sap.m.table.ColumnMenu.
	 * It can be used to specify control- and application-specific items,
	 * which should solely serve as actions.
	 *
	 * @extends sap.m.table.ItemBase
	 *
	 * @author SAP SE
	 * @version 1.97.1
	 *
	 * @private
	 * @experimental
	 *
	 * @alias sap.m.table.ActionItem
	 */
	var ActionItem = ItemBase.extend("sap.m.table.ActionItem", {
		metadata: {
			library: "sap.m",
			properties: {
				/**
				 * Defines the label, which should be used for the buttons.
				 */
				label: {type: "string"},
				/**
				 * Defines the icon for the menu item.
				 */
				icon: {type: "sap.ui.core.URI"}
			},
			events: {
				/**
				 * This event will be fired, when the action was pressed.
				 */
				press: {}
			}
		}
	});

	/**
	 * @override
	 */
	ActionItem.prototype.onPress = function (oEvent) {
		oEvent.preventDefault();
		this.firePress();
	};

	ActionItem.prototype.getContent = function () {
		return null;
	};

	return ActionItem;
});