Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Slot for custom buttons #43

Open
WisdomSky opened this issue Feb 17, 2020 · 2 comments
Open

Slot for custom buttons #43

WisdomSky opened this issue Feb 17, 2020 · 2 comments

Comments

@WisdomSky
Copy link

Instead of recommending us to create our own custom popups, why not take advantage of vue's slots?

image

There are many cases where we want to use other buttons instead of edit and delete. We should be able to easily add our own into this bottom section of the popup via slots. That would've made our lives easier and never have to re-invent the wheel.

@jungeun-cho
Copy link
Contributor

jungeun-cho commented Feb 17, 2020

Simply changing the label of a button can be changed using a template option.
https://nhn.github.io/tui.calendar/latest/tutorial-example16-template-for-popup

However, to change it in detail, you need to create a custom popup.
https://github.com/nhn/tui.calendar/blob/master/docs/getting-started.md#customize-popups

@dongsik-yoo
Copy link
Contributor

I understand. I'm a Vue's user, too. And I'm aware of that slot is very useful to customize components. But this vue component of TOAST UI Calendar is just a wrapper which is not containing any vue rendering process. It's pure DOM rendering. If this can use slot about all customizable pure DOM rendering, It'll be very big tasks. So we don't have any plan yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants