UNPKG

mediasfu-angular

Version:
52 lines (51 loc) 1.99 kB
import { IconDefinition } from '@fortawesome/free-solid-svg-icons'; import { EventType } from '../../../@types/types'; import * as i0 from "@angular/core"; export interface ShareButton { icon: IconDefinition; action: () => void; show: boolean; color?: string; iconColor?: string; } export interface ShareButtonsComponentOptions { meetingID: string; shareButtons?: ShareButton[]; eventType: EventType; localLink?: string; } export type ShareButtonsComponentType = (options: ShareButtonsComponentOptions) => HTMLElement; /** * @component ShareButtonsComponent * @selector app-share-buttons-component * @description Displays a set of share buttons for sharing a meeting link on social media and email. * * @example * ```html * <app-share-buttons-component * [meetingID]="'12345'" * [eventType]="'broadcast'" * [shareButtons]="customShareButtons" * [localLink]="'https://www.google.com'" * ></app-share-buttons-component> * ``` * * ```typescript * const customShareButtons = [ * { icon: faEnvelope, action: () => console.log('Email'), show: true }, * { icon: faFacebook, action: () => console.log('Facebook'), show: true }, * ]; * ``` */ export declare class ShareButtonsComponent { meetingID: string; shareButtons: ShareButton[]; eventType: EventType; localLink?: string; defaultShareButtons: ShareButton[]; get shareName(): "chat" | "broadcast" | "meeting"; getShareUrl(): string; get filteredShareButtons(): ShareButton[]; static ɵfac: i0.ɵɵFactoryDeclaration<ShareButtonsComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ShareButtonsComponent, "app-share-buttons-component", never, { "meetingID": { "alias": "meetingID"; "required": false; }; "shareButtons": { "alias": "shareButtons"; "required": false; }; "eventType": { "alias": "eventType"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; }, {}, never, never, true, never>; }