copy-content/src/copy-content/copy-content-button.component.ts
The copy content button component. This component is used to copy the content of a text field.
Example :<talenra-copy-content-button toCopy="text to copy" />import { CopyContentButtonComponent } from '@talenra/components/copy-content';| changeDetection | ChangeDetectionStrategy.OnPush |
| host | { |
| selector | talenra-copy-content-button |
| imports |
IconComponent
TooltipDirective
|
| templateUrl | ./copy-content-button.component.html |
| styleUrl | ./copy-content-button.component.scss |
Properties |
Inputs |
Accessors |
| negativeColor |
Default value : false, { transform: booleanAttribute }
|
|
State if the color of the icon should be negative (white with opacity 0.5). Example : |
| position |
Type : TCopyContentPosition
|
Default value : 'east'
|
|
The position relative to the hosting element ('west', 'east'). Defaults to 'east'. Example : |
| toCopy |
Default value : ''
|
|
Text displayed that is to copy. Example : |
| tooltip |
Type : string
|
Default value : ''
|
|
The tooltip text. Example : |
| tooltipPosition |
Type : unknown
|
Default value : computed<TTooltipPosition>(() => this.position() as TTooltipPosition)
|
|
The tooltip position. In relation to the button position. |
| state | ||||||
getstate()
|
||||||
|
Used for visual transitions. When
Returns :
"active" | "inactive"
|
||||||
setstate(value: "active" | "inactive")
|
||||||
|
Parameters :
Returns :
void
|