UNPKG

@blackbaud/skyux

Version:
25 lines 1.44 kB
import { Component } from '@angular/core'; import { SkyListSecondaryActionsService } from './list-secondary-actions.service'; var SkyListSecondaryActionComponent = (function () { function SkyListSecondaryActionComponent(actionService) { this.actionService = actionService; this.actionService.addSecondaryAction(); } SkyListSecondaryActionComponent.prototype.ngOnDestroy = function () { this.actionService.removeSecondaryAction(); }; return SkyListSecondaryActionComponent; }()); export { SkyListSecondaryActionComponent }; SkyListSecondaryActionComponent.decorators = [ { type: Component, args: [{ selector: 'sky-list-secondary-action', template: "<div class=\"sky-list-secondary-action\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-list-secondary-action{background-color:transparent;border:none;display:block;margin:4px;min-width:160px;text-align:left;transition:background-color 150ms}.sky-list-secondary-action:hover{background-color:#eeeeef}.sky-list-secondary-action /deep/>button{background-color:transparent;border:none;cursor:pointer;display:block;padding:3px 20px;text-align:left;width:100%}\n"] },] }, ]; /** @nocollapse */ SkyListSecondaryActionComponent.ctorParameters = function () { return [ { type: SkyListSecondaryActionsService, }, ]; }; //# sourceMappingURL=list-secondary-action.component.js.map