Code Monkey home page Code Monkey logo

Comments (6)

ByteFight avatar ByteFight commented on June 6, 2024 1

Ok, got it working like you described it! Thanks for your effort!

from vue-advanced-chat.

antoine92190 avatar antoine92190 commented on June 6, 2024

Yes, you can use the textMessages props: https://github.com/antoine92190/vue-advanced-chat#props-api
Let me know if that solves your problem

from vue-advanced-chat.

antoine92190 avatar antoine92190 commented on June 6, 2024

Actually, can you explain more about date output? Maybe some screenshots or examples.
Regarding message actions, you can use the messageActions prop to use your own text.

from vue-advanced-chat.

ByteFight avatar ByteFight commented on June 6, 2024

Thanks, I missed the option for messageActions, working fine now!

Regarding the dates: I mean the ones that intersect messages of different days and also the date output at the beginning of the chat (see the screenshot).

Bildschirmfoto 2020-10-02 um 19 22 59

from vue-advanced-chat.

ByteFight avatar ByteFight commented on June 6, 2024

If you're using the JavaScript Date object you could provide an option for a language code or something like that. Maybe the output could be generated by Date.toISOString() which accepts language codes, timezones and other params for modifying the displayed output.

from vue-advanced-chat.

antoine92190 avatar antoine92190 commented on June 6, 2024

I'm not using any date library on purpose so you keep maximum control.
Dates are actually plain strings, which you assign using the messages prop: https://github.com/antoine92190/vue-advanced-chat#messages-prop
You can assign the date property, which is a string.

from vue-advanced-chat.

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.