Giter Site home page Giter Site logo

Comments (5)

mmorainville avatar mmorainville commented on August 16, 2024 1

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.

mmorainville avatar mmorainville commented on August 16, 2024

Hi @zanedev,

You can check the feature on the custom-callback-management branch.
8cd3883

from vue-tour.

zanedev avatar zanedev commented on August 16, 2024

@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.

mmorainville avatar mmorainville commented on August 16, 2024

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.

DerekNMartin avatar DerekNMartin commented on August 16, 2024

@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)

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.