Comments (5)
Hi @zanedev,
It would indeed be useful! I'll tackle this one maybe with something like this:
<slot name="header">
<div class="v-step__header">
<span v-if="step.header.title" v-html="step.header.title"></span>
<div v-if="step.header.rightBlock" v-html="step.header.rightBlock"><!-- Code for a close button by default? --></span>
</div>
</slot>
I'll see, but for now indeed the solution was to just customize the step.content with custom HTML.
from vue-tour.
Hi @zanedev,
You can check the feature on the custom-callback-management branch.
8cd3883
from vue-tour.
@mmorainville branch looks good to me 👍 Yeah if you have time maybe adding an optional close X
with another param would make sense. Looking forward to the next release!
from vue-tour.
Hi @zanedev ,
The feature is ready, the documentation should come soon!
Yes an optional close button would be great, but it requires some thinking to do it right. For example should we allow the user to pass a custom function for the close button or can he customize the button through the step options, etc.
We'll do it later if it's really needed.
from vue-tour.
@mmorainville For what it's worth, I would love an option for a close X button in the top right corner. I think it's an important feature.
from vue-tour.
Related Issues (20)
- Have problems when get started using v-tour HOT 3
- Prod package overall size deduction
- Arrow and popup position issue on language change
- Get some more contextual data on callbacks
- onFinish callback HOT 6
- Conditionally Stop HOT 1
- finish prop is missing in Customizing the Template inside Documentation
- Build fails in vue-tour (npm run build)
- Tour stops when targets aren't found HOT 2
- Memory leak when using VueTour in vue-test-utils [BUG]
- Vue 3 Compatibility HOT 5
- Is there a way to install locally rather than globally HOT 1
- Unable to point to elements in child components using vue 2 and quasar
- Disable interaction with any elements while tour is displayed HOT 3
- Stop the tour HOT 1
- After adding v-if to the component, the component will not be destroyed if the condition is false. HOT 2
- Install with Nuxt3 HOT 2
- Embed Image in tour HOT 1
- Can I pause a tour? HOT 1
- How to integrate with vite ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-tour.