UNPKG

fundamental-ngx

Version:

SAP Fundamentals, implemented in Angular

61 lines 4.64 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { Component, Input, ViewEncapsulation } from '@angular/core'; /** * The component that represents a shellbar action. * ```html * <fd-shellbar-action *ngFor="let action of actions" * [glyph]="action.glyph" * [callback]="action.callback" * [label]="action.label" * [notificationCount]="action.notificationCount" * [notificationLabel]="action.notificationLabel"> * </fd-shellbar-action> * ``` */ export class ShellbarActionComponent { } ShellbarActionComponent.decorators = [ { type: Component, args: [{ selector: 'fd-shellbar-action', template: "<div class=\"fd-shellbar__action fd-shellbar__action--collapsible\">\n <button class=\"fd-button--shell\" (click)=\"callback ? callback($event) : ''\"\n [ngClass]=\"(glyph ? ('sap-icon--' + glyph) : '')\"\n [attr.aria-label]=\"label\">\n <span *ngIf=\"notificationCount\" class=\"fd-counter fd-counter--notification\" [attr.aria-label]=\"notificationLabel\">{{notificationCount}}</span>\n </button>\n</div>\n", encapsulation: ViewEncapsulation.None }] } ]; ShellbarActionComponent.propDecorators = { glyph: [{ type: Input }], callback: [{ type: Input }], label: [{ type: Input }], notificationLabel: [{ type: Input }], notificationCount: [{ type: Input }] }; if (false) { /** * The glyph (icon) name * @type {?} */ ShellbarActionComponent.prototype.glyph; /** * Callback that hanldles the response to clicks on any of the actions. * @type {?} */ ShellbarActionComponent.prototype.callback; /** * The action label. * @type {?} */ ShellbarActionComponent.prototype.label; /** * The notification label. * @type {?} */ ShellbarActionComponent.prototype.notificationLabel; /** * Represents the number of notifications. * @type {?} */ ShellbarActionComponent.prototype.notificationCount; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hlbGxiYXItYWN0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2Z1bmRhbWVudGFsLW5neC8iLCJzb3VyY2VzIjpbImxpYi9zaGVsbGJ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