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

Custom Header Buttons #387

Open
PostmansCat opened this issue Jun 13, 2022 · 0 comments
Open

Custom Header Buttons #387

PostmansCat opened this issue Jun 13, 2022 · 0 comments

Comments

@PostmansCat
Copy link

ISSUE

I am trying to have the wizard controls from the footer above in the header as well. Anyone have an idea how I could achieve this?

End result wanted:

<!-- Header Actions -->
<template slot="header" slot-scope="props">
       <div class="wizard-header-left">
           <wizard-button  v-if="props.activeTabIndex > 0 && !props.isLastStep" @click.native="props.prevTab()" :style="props.fillButtonStyle">Previous</wizard-button>
        </div>
        <div class="wizard-header-right">
          <wizard-button v-if="!props.isLastStep"@click.native="props.nextTab()" class="wizard-header-right" :style="props.fillButtonStyle">Next</wizard-button>
          
          <wizard-button v-else @click.native="alert('Done')" class="wizard-header-right finish-button" :style="props.fillButtonStyle">  {{props.isLastStep ? 'Done' : 'Next'}}</wizard-button>
        </div>
</template>

<!-- Tabs -->
<tab-content title="Personal details">
    My first tab content
  </tab-content>]

<!-- Footer Actions -->
<template slot="footer" slot-scope="props">
       <div class="wizard-footer-left">
           <wizard-button  v-if="props.activeTabIndex > 0 && !props.isLastStep" @click.native="props.prevTab()" :style="props.fillButtonStyle">Previous</wizard-button>
        </div>
        <div class="wizard-footer-right">
          <wizard-button v-if="!props.isLastStep"@click.native="props.nextTab()" class="wizard-footer-right" :style="props.fillButtonStyle">Next</wizard-button>
          
          <wizard-button v-else @click.native="alert('Done')" class="wizard-footer-right finish-button" :style="props.fillButtonStyle">  {{props.isLastStep ? 'Done' : 'Next'}}</wizard-button>
        </div>
</template>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant