copy-content/src/copy-content/copy-content.directive.ts
CopyContent provides a CopyContentButton which is displayed when the hosting element is hovered. By default the CopyContentButton is displayed right of the hosting element (east). The preferred position can be changed (s. copyContentPosition). If space is limited, position is adjusted automatically.
Example :<span textToCopy="text to copy" />import { CopyContentDirective } from '@talenra/components/copy-content';
| Selector | [textToCopy] |
Inputs |
| position |
Type : TCopyContentPosition
|
Default value : 'east', { alias: 'copyContentPosition' }
|
|
The position relative to the hosting element ('north', 'east', …). Defaults to 'east'. Example : |
| toCopy |
Type : string
|
Default value : '', { alias: 'textToCopy' }
|
|
Text copied to clipboard when element is clicked. Example : |
| tooltip |
Type : string
|
Default value : '', { alias: 'copyContentTooltip' }
|
|
Text displayed in the tooltip. Example : |