Sha256: 73c277c70c1a39bf7436d362a240bc2778dd21908eb30e6901f6c63d728595ca
Contents?: true
Size: 1.87 KB
Versions: 4
Compression:
Stored size: 1.87 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. */ /** * Defines support rules of the Select control of sap.m library. */ sap.ui.define(["sap/ui/support/library"], function(SupportLib) { "use strict"; // shortcuts var Categories = SupportLib.Categories, // Accessibility, Performance, Memory, ... Severity = SupportLib.Severity, // Low, Medium, High Audiences = SupportLib.Audiences; // Control, Internal, Application //********************************************************** // Rule Definitions //********************************************************** /** * Checks if the Breadcrumbs control is placed in OverflowToolbar */ var oBreadcrumbsRule = { id : "breadcrumbsInOverflowToolbar", audiences: [Audiences.Control], categories: [Categories.Usability], enabled: true, minversion: "1.34", title: "Breadcrumbs in OverflowToolbar", description: "The Breadcrumbs should not be placed inside an OverflowToolbar", resolution: "Place breadcrumbs in another container.", resolutionurls: [{ text: "SAP Fiori Design Guidelines: Breadcrumbs", href: "https://experience.sap.com/fiori-design-web/breadcrumb/#guidelines" }], check: function (oIssueManager, oCoreFacade, oScope) { oScope.getElementsByClassName("sap.m.Breadcrumbs") .forEach(function(oElement) { var sElementId = oElement.getId(), sElementName = oElement.getMetadata().getElementName(); if (oElement.getParent() instanceof sap.m.OverflowToolbar) { oIssueManager.addIssue({ severity: Severity.Medium, details: "Breadcrumbs '" + sElementName + "' (" + sElementId + ") is placed inside an OverflowToolbar.", context: { id: sElementId } }); } }); } }; return [oBreadcrumbsRule]; }, true);
Version data entries
4 entries across 4 versions & 2 rubygems