react-chat-widget icon indicating copy to clipboard operation
react-chat-widget copied to clipboard

Multiple Message Widgets

Open jdavidteki opened this issue 5 years ago • 2 comments

Not sure if someone has asked this before, but is there a way to have multiple message widgets without having to deal with non-unique CSS classes? I am currently doing something like this (snippet below) but when the 'active' class is attached to the 'rcw-widget-container' class, all the other widgets become active.

      <div className={"rcw-widget-container" + this.props.item.id}>
        <Widget
          handleNewUserMessage={this.handleNewUserMessage}
          chatId={"rcw-widget-container" + this.props.item.id}
        />
      </div>

It would be nice to be able to control each unique chat widget differently.

jdavidteki avatar May 27 '20 04:05 jdavidteki

Did you figure this out? My usecase is to have one chat widget and another full-screen chat on the same page. It seems like the toggleChatWidget() method toggles all widgets at the same time

luddilo avatar Aug 13 '20 12:08 luddilo

I am also trying to achieve this... any possible way to have more than one <Widget> in a single app?

ldkaskow avatar Sep 14 '20 22:09 ldkaskow