UNPKG

ngx-sharebuttons

Version:

<p align="center"> <img height="200px" width="200px" style="text-align: center;" src="https://rawcdn.githack.com/MurhafSousli/ngx-sharebuttons/13279ed77c47fe9dd7b61e4dad3ded6d02488c2f/projects/ngx-sharebuttons-demo/src/assets/img/logo.svg"> <h1 alig

47 lines (46 loc) 2.37 kB
import { Signal, InputSignal, WritableSignal, OutputEmitterRef } from '@angular/core'; import { IShareButton, ShareDirectiveUpdater } from './share.models'; import { ShareButtonProp } from './share.defaults'; import * as i0 from "@angular/core"; export declare class ShareButtonDirective { private readonly shareButtonsProps; /** Injected options */ private readonly options; /** Share directive element ref */ private readonly shareService; private readonly nativeElement; /** Share button UI state */ uiState: WritableSignal<ShareDirectiveUpdater>; /** Share button color */ color: Signal<string>; /** Share button text */ text: Signal<string>; /** Share button icon */ icon: Signal<any>; /** Share button disabled */ disabled: Signal<boolean>; /** Share button type */ shareButton: InputSignal<ShareButtonProp>; shareButtonInstance: Signal<IShareButton>; /** Sets the title parameter */ title: InputSignal<string>; /** Sets the description parameter */ description: InputSignal<string>; /** Sets the image parameter for sharing on Pinterest */ image: InputSignal<string>; /** Sets the tags parameter for sharing on X and Tumblr */ tags: InputSignal<string>; /** Sets the fb messenger redirect url to enable sharing on Messenger desktop */ redirectUrl: InputSignal<string>; /** Sharing link */ url: InputSignal<string>; /** Stream that emits when share dialog is opened */ opened: OutputEmitterRef<string>; constructor(); /** * Share the link */ share(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ShareButtonDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<ShareButtonDirective, "[shareButton]", ["shareButton"], { "shareButton": { "alias": "shareButton"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "tags": { "alias": "tags"; "required": false; "isSignal": true; }; "redirectUrl": { "alias": "redirectUrl"; "required": false; "isSignal": true; }; "url": { "alias": "url"; "required": false; "isSignal": true; }; }, { "opened": "opened"; }, never, never, true, never>; }