ragnarlotus / vue-flux

Image slider which comes with 20 cool transitions
https://ragnarlotus.github.io/vue-flux-docs/demos/demos
MIT License
542 stars 49 forks source link

Add title and description to slides #85

Closed JohanaG3 closed 4 years ago

JohanaG3 commented 4 years ago

Hey, how can i add a title and description to my slides?

ragnarlotus commented 4 years ago

Hello, there is a complement for that called caption. You can check [caption's documentation to know how to use it, but the title and description should be in the same place.

If you really need them for example in title at top and description at bottom I can make a small release adding a slot allowing you to do it.

Regards

JohanaG3 commented 4 years ago

Yes, i need to put the description at the middle with a specific style!. very appreciate your help. thanks. I used the caption complement but only allows me put the title.

ragnarlotus commented 4 years ago

No problem :)

I will create a new version with another slot this week.

ragnarlotus commented 4 years ago

Really sorry for the delay.

Just release 6.3.0 which has the description slot. It is located at bottom by default.

Let me know if you have any problem.

Regards!

JohanaG3 commented 4 years ago

Very thankful! ... I write my code in this way: Please check out because doesn't work for me yet. ` `

ragnarlotus commented 4 years ago

It's normal that it does not work, I just added a slot, not a component nor descriptions attribute, so you will need to create you own component and pass the descriptions to it, making it display the corresponding description based on the current image.

You can just copy the FluxCaption component and tune it to achieve what you want.

In next major version, which I'm preparing will be much easier, but I still need some more months to finish it.

Try to do it the way I said and let me know if you get stuck, I will try to help you.

Regards!