ng-chat icon indicating copy to clipboard operation
ng-chat copied to clipboard

Hi @rpaschoal want to add video button on top of ng-chat Window like ng-chat-options

Open Code-N-K opened this issue 5 years ago • 8 comments

I need to add a video button on top of ng-chat Window like Close button. This video button could be click able. Please provide details for the same.

... ng-chat-options to add people i want to add video button and want to call my own functions of javascript and webrtc

@rpaschoal - Enhancement required.

Code-N-K avatar Apr 04 '19 10:04 Code-N-K

Hi @Code-N-K ,

I believe it would be sufficient if you could provide your extra chat options as an Input right?

rpaschoal avatar Apr 04 '19 20:04 rpaschoal

Can you(@rpaschoal ) suggest me the functional code as i was unable to find proper tags in your ng-chat module.

Code-N-K avatar Apr 05 '19 03:04 Code-N-K

Hi @Code-N-K , I believ that is not yet available as public API to the component. Check this link: https://github.com/rpaschoal/ng-chat/blob/master/src/ng-chat/core/chat-option.ts

Do you believe that exposing something similar would help you achieving what you're trying to implement? This is what's being used to render the top right options menu.

rpaschoal avatar Apr 05 '19 21:04 rpaschoal

Hi @rpaschoal, it is just an interface. But I need the actual code to add a new button on user message chat window.

My main query is I need to add some more buttons on user chat window, so that we can add our more functionality to the user message chat window.

As you have added the (add people) functionality in your live demo, I am unable to add something like that..

So I actually need to add a(video call) icon near to X(close) button on user message chat window.

Code-N-K avatar Apr 06 '19 02:04 Code-N-K

This is exactly what I am talking about @Code-N-K ,

For the time being that chat options feature is not publicly exposed, it is just used as an internal component in ng-chat. I believe what you want is to be able to pass your own custom options with their own custom actions. This is not implemented yet but it could be.

Would you feel comfortable pushing these changes to this repository and if they look good I'll merge them and publish a new release?

Cheers!

rpaschoal avatar Apr 07 '19 18:04 rpaschoal

I am unable to extent the ChatOptions as dont have any example for the same. I can only fork if some working example is available.

i have forked the fesm5 : ng-chat.js file and added the

<a href="javascript:void(0);" class="ng-chat-close primary-text" (click)="onVideoChatWindow(window)">Video\r\n <a href="javascript:void(0);" class="ng-chat-close primary-text" (click)="onCloseChatWindow(window)">X10\r\n

onVideoChatWindow(window) - But the custom method is not working, as it is not part of ng-chat.html

I urgently need this options, Kindly update. @rpaschoal

HELP.

Code-N-K avatar Apr 08 '19 06:04 Code-N-K

Any update on adding video call icon?

neeraj-anand avatar Jan 28 '21 06:01 neeraj-anand

@rpaschoal Any update on adding video call icon?

neeraj-anand avatar Jan 28 '21 08:01 neeraj-anand