Coder Social home page Coder Social logo

Comments (5)

DuredhelFinceleb avatar DuredhelFinceleb commented on July 18, 2024

the date info should be into event.startDate and event.endDate
if you want the full date time this will be event.start and event.end (if time is false or your event is an all day one (ie event.allDay=true) then event.start/end are the same than event.startDate/endDate)
and time info is into event.startTime and event.endTime

so to display the start and end dates into your slot you would have something like this

<div class="vuecal__event-time">
      <strong>Event start:</strong> <span>{{ event.startDate }}</span><br/>
      <strong>Event end:</strong> <span>{{ event.endDate }}</span>
</div>

from vue-cal.

DuredhelFinceleb avatar DuredhelFinceleb commented on July 18, 2024

note that if you have set time to false, you'll have to use an other class because vuecal__event-time won't be available. See https://antoniandre.github.io/vue-cal/#ex--custom-event-rendering

from vue-cal.

antoniandre avatar antoniandre commented on July 18, 2024

Hi @lllito,

@DuredhelFinceleb, gave a good example that you can follow. 👌

To help you out here is a Codepen with what you want: https://codepen.io/antoniandre/pen/jJbygw?editors=1010


To set custom event rendering please refer to this example: https://antoniandre.github.io/vue-cal/#ex--custom-event-rendering.
Now in this example, events are not displayed on month view, so you will need to add the attribute :events-on-month-view="true". Refer to this example: https://antoniandre.github.io/vue-cal/#ex--events-on-month-view

Let me know if you still need assistance.

from vue-cal.

litoxy avatar litoxy commented on July 18, 2024

thanks so much

from vue-cal.

antoniandre avatar antoniandre commented on July 18, 2024

👌 Closing the issue then.

from vue-cal.

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.