-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to get the date info by use event-render slot on month view #59
Comments
the date info should be into event.startDate and event.endDate 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> |
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 |
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. Let me know if you still need assistance. |
thanks so much |
👌 Closing the issue then. |
Hi~
first apologize for my poor englist
my question is how to get the date info by use event-render slot on month view
this is my code
<vue-cal @day-focus="dayClick" > <div slot="event-renderer" slot-scope="{ event,view}"> //how to get the date info in this event ? <div class="vuecal__event-title" v-html="event.title" /> </div> </vue-cal>
The text was updated successfully, but these errors were encountered: