UNPKG

@blackbaud/skyux-lib-clipboard

Version:

This library was generated with [Nx](https://nx.dev).

41 lines (40 loc) 2.34 kB
import { ChangeDetectorRef } from '@angular/core'; import { SkyAppWindowRef } from '@skyux/core'; import { SkyCopyToClipboardService } from './clipboard.service'; import * as i0 from "@angular/core"; export declare class SkyCopyToClipboardComponent { #private; /** * Specifies an ARIA label for the copy to clipboard button * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility). * If the button includes a visible label outside of the button itself, use `ariaLabelledBy` instead. */ ariaLabel: string | undefined; /** * Specifies the HTML element ID (without the leading #) of the element that labels the copy to clipboard button. This sets the input's aria-labelledby attribute * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility). * If the button does not include a visible label outside of the button itself, use `ariaLabel` instead. */ ariaLabelledBy: string | undefined; /** * Specifies the HTMLElement which contains the content being copied. */ copyTarget: HTMLElement | undefined; /** * Specifies the label for the copy to clipboard button when the button has not been clicked. */ buttonText: string | undefined; /** * Specifies the label for the copy to clipboard button after the button has been clicked. */ buttonClickedText: string | undefined; /** * Specifies a title attribute for the copy to clipboard button. */ title: string | undefined; buttonActive: boolean; constructor(changeDetector: ChangeDetectorRef, clipboardSvc: SkyCopyToClipboardService, windowRef: SkyAppWindowRef); copyToClipboard(): void; static ɵfac: i0.ɵɵFactoryDeclaration<SkyCopyToClipboardComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SkyCopyToClipboardComponent, "sky-copy-to-clipboard", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "copyTarget": { "alias": "copyTarget"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "buttonClickedText": { "alias": "buttonClickedText"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, false, never>; }