Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular Adaptor Event Handlers #69

Open
ThreatLockerDerek opened this issue Jan 18, 2023 · 0 comments
Open

Angular Adaptor Event Handlers #69

ThreatLockerDerek opened this issue Jan 18, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ThreatLockerDerek
Copy link

Describe the bug
I am using the Angular widget of LiveChat and I want to be able to call functions to manipulate the chat widget. For Example. set the widget visibility to 'maximize' and 'minimize'. From the documentation Here Angular Adapter it looks like I should be able to call LiveChatWidget.on('visibility_changed', onVisibilityChanged);. My Question is Am I only able to use this function call in a script tag html or can I use it also in my component.ts file?

To Reproduce
Steps to reproduce the behavior:

  1. OnInit LiveChat widget will be 'minimized'.
  2. On Click of widget call function to open another Angular Dialog.
  3. When form submitted in Dialog, can make a call to 'maximize' LiveChat widget.
  4. other function call between LiveChat and Angular components will continue.

Expected behavior
An example and expected behavior of how to make function calls between Angular components and LiveChat, Do I make calls in script tag HTML or can I make calls to the Widget in component files?

Screenshots
not applicable at this time

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Browser [Edge*, Chrome, FireFox]

Smartphone (please complete the following information):
n/a

Additional context
n/a

@ThreatLockerDerek ThreatLockerDerek added the bug Something isn't working label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants