Giter Site home page Giter Site logo

Comments (8)

mmmikeal avatar mmmikeal commented on July 20, 2024

im currently trying to implement this myself by copying the repo directly into my project and playing with Launcher

from react-chat-window.

dharness avatar dharness commented on July 20, 2024

I agree this would be nice. I'll throw it on the backlog, and if you work something out, feel free to submit a PR. I'd prefer a prop isOpen or something. Is there a reason you want to hook directly into the handleClick?

from react-chat-window.

mmmikeal avatar mmmikeal commented on July 20, 2024

Yeah, I made a ghetto list of buttons to open up a specific chat from my current chats with different users. When I click that button I want the chat window for that user to toggle open. I finished it and will submit a pull request tomorrow after I clean up. I didn't use the handle click, just made a function that takes a boolean prop (into launcher) and sets the active state to true. It's really simple, but allows more flexibility in using your NPM module since I could only do it by actually going into launcher

from react-chat-window.

jacksonwildemurphy avatar jacksonwildemurphy commented on July 20, 2024

Hi, has this functionality been added? I'm using this component but have been unable to toggle the window open/closed programmatically. I see that @mmmikeal has submitted a pull request that was never emerged in, and a comment from @dharness in that request saying it was resolved in pull #34...
Thanks for your work on this!

from react-chat-window.

dharness avatar dharness commented on July 20, 2024

@jacksonwildemurphy It was resolved in #34

but it never got republished to npm. Let me get to that shortly.

from react-chat-window.

mmmikeal avatar mmmikeal commented on July 20, 2024

from react-chat-window.

jacksonwildemurphy avatar jacksonwildemurphy commented on July 20, 2024

@dharness , @mmmikeal thank you both. I really appreciate it

from react-chat-window.

dharness avatar dharness commented on July 20, 2024

This is complete and you can use it on https://github.com/dharness/react-chat-window/tree/rc-1.1.0

with the isOpen flag. It will also be part of the upcoming release.

from react-chat-window.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.